Defining relative clauses: you need them in the sentence for it to make sense. They give you essential information. NO COMMAS!!!
Non defining relative clauses: They give extra information, which isn’t absolutely necessary. We use COMMAS to separate them from the rest of the sentence.