A compound sentence contains two or more independent clauses and no dependent clauses. Each independent clause can stand on its own as a sentence.

How to recognize it
Find at least two clauses that could each be a complete sentence. Check that none is a dependent clause.
Examples explained
Conjunction
The road was closed, so we took a detour.
Why it works: Both clauses can stand alone. The comma and so join them.
Semicolon
The road was closed; we took a detour.
Why it works: A semicolon links two closely related independent clauses.
Shared subject contrast
We took a detour and arrived late.
Why it works: This is simple, not compound: the verbs share we, so there is only one independent clause.
Common mix-up
A comma alone cannot normally join two independent clauses. Repair a comma splice with a conjunction, semicolon, or full stop.
Quick check
Is “Mina stayed, but Omar left” compound?
Reveal the answer and explanation
Yes. Mina stayed and Omar left are independent clauses joined with a comma and but.