There are four types of sentences defined by their function: declarative sentences make statements, imperative sentences give commands, interrogative sentences ask questions, and exclamatory sentences convey strong emotion. Each sentence can only have one of these four functions and is punctuated accordingly, such as declarative sentences ending with a period and interrogative sentences ending with a question mark. Understanding the different sentence types provides a foundation for improving writing.