A period is generally used to end declarative sentences, such as - It is raining. Interrogative sentences usually end with a question mark - Do you like rock music?, whereas imperative and exclamatory sentences usually end with an exclamation mark - Close that window! I love you!