A complex sentence is formed by joining an independent clause with at least one dependent clause. A simple sentence contains only one independent clause, while a compound sentence consists of two or more independent clauses joined by a coordinating conjunction.