This is a complex sentence because it includes a dependent phrase. A dependant phrase is a phrase that becomes a fragment because of a subordinate proposition.
Other examples of prepositions include because and as.
They should cause and effect in a sentence.