Determine the use of the prepositional phrase in the following sentence.

The scenery was beautiful when we drove the car through the valley.

adjective
adverb