Answer
'That' introduces essential restrictive clauses without commas; 'which' introduces nonessential descriptive clauses preceded by a comma.
Explanation
Example: 'The books that are on the desk belong to Ana' (specific books). 'The books, which are on the desk, belong to Ana' (all books).