Relative pronouns are used to introduce relative clauses. They refer to people or things by replacing the subject expressed in the main clause to avoid the repetition of it in the relative clause.
External link to: Relative Pronouns of People and Things Topic.