An adjectival infinitive phrase modifies a noun or pronoun. In other words, it acts like an adjective. For example: “As long as she's here, I'll always have a friend to talk to me.” The infinitive phrase to talk to me modifies (or describes) the noun friend.