The noun or pronoun that ends the prepositional phrase is the object of the preposition that begins the phrase.
Prepositional phrases used as adjectives are called adjective phrases.
The prepositional phrase that is used as an adverb to tell when, where, how, how much or how far, is called an adverbial phrase.