Typically commas are used to set aside infomation that is loosely related to the meaning of the sentence. Example: Erin, the girl with the red hair, is in my English class.