contestada

Read the sentence:

In the anthology, I read a classic poem that was written over 500 years ago.


Which word does the underlined adjective clause modify?