Complex sentence: Blue cheese is believed to have been discovered by accident, when cheeses were stored in naturally temperature and moisture controlled caves, which happened to be favorable environments for many varieties of harmless mold.
Split into simpler sentences: Blue cheese is believed to have been discovered by accident. The caves in which early cheeses were aged shared the properties of being temperature and moisture controlled environments, as well as being favorable to many varieties of harmless mold.