What is a compound sentence?
A compound sentence connects two independent clauses. (Independent clauses are those which can stand alone as separate sentences.)
Compound sentences often use a coordinating conjunction (for, and, nor, but, or, yet, so) to join the two independent clauses, although a semicolon can be used too.