Which is a complex sentence?

 - Robert returned to his hometown when he started his own family.
 - The detour took us across the bridge and along the one-lane road by the river.
The first sentence is the complex sentence. It is made up of an independent clause and a dependent clause. The dependent clause begins with the subordinating conjunction when.
Robert returned to his hometown when he started his own family.