That and which are relative pronouns. They can function as adjectives and pronouns. Which can be used to modify a noun and in this case it is considered as an adjective
ex:
This is the car which my father bought yesterday.
This is the man that I admire.