A complex sentence consists of a principal clause and one or more subordinate clauses.
A subordinate clauses may follow, precede or interrupt the principal clause.
According to their grammatical function subordinate clauses are divided into subject, predicative, attributive, object, and adverbial clauses.