KMgCl3·6H2O, also known as magnesium chloride hexahydrate, is a chemical compound that consists of potassium, magnesium, chlorine, and water. It is an important compound in the context of the occurrence and preparation of representative metals, as it is a naturally occurring mineral that can be used as a source of magnesium.