A compound sentence is when you combine two or more independent clauses, each of which provides a complete and separate thought. The clauses are joined to each other by conjunctions, or a semicolon.
We use coordinating or subordinating conjunctions to connect the sentences. The seven coordinating conjunctions are usually used with a comma, and their initials spell the mnemonic "fanboys."
Coordinating conjunctions