The to-infinitive is used in many sentence constructions, often expressing the purpose of something or someone's opinion about something. The to-infinitive is used following a large collection of different verbs as well. See this page about verbs followed by infinitives.