What type of sentence is the following sentence:

Tobuild a treehouse, you would need wood, a hammer, a saw, and a lot of nails.

The sentence is a complex sentence.