A compound sentence contains two or more coordinate main clauses, and does not contain a dependent clause. (If it did, it would be called a compound-complex sentence.) The two or more coordinate clauses could stand as simple sentences on their own, and could be joined into one sentence with a comma and coordinate conjunction, but they could also be joined by a comma or a conjunction on its own, or by a semicolon.