A relative clause gives extra information about a noun in the main clause. They can refer to this as subject or object.
That's the woman who bought my car. The woman (subject) bought my car.
That's the car that I used to own. I used to own the car. (object)