Sarah is absolutely correct, but I wanted to add, that you can switch it to the active voice and say:
"I waited for the ring for 4 years."
It depends on whether "I", "the ring" or "4 years" is the focus of the sentence.
The ring that I waited for for 4 years. -> "the ring" is the focus
I waited for the ring for 4 years. -> "I" am the focus.
For 4 years, I waited for the ring. -> "4 years" is the focus.