A complex sentence has one main clause and one or more subordinate clauses linked by subordinating conjunction.
She is happy because she has won the race. Here, She is happy is main clause and because she has won the race is subordinate clause linked to the main by a subordinating conjunction because.