1- Relative pronouns are used
a. to connect elements in a sentence and to avoid repetition.
b. to emphasize an element in the sentence and to contrast ideas.
2-Relative pronouns refer to
a. a previous element (= noun or noun phrase).
b. a following element (= noun or noun phrase).