What is the part of speech is "the door" in the sentence below?

Grammatically speaking what is "the door" in the following sentence?

To answer the door, she pulled it open.

Is it a modifier?


The door is the object of the verb answer. The phrase to answer the door is an adverbial phrase of purpose modifying the main verb or the praedicate.