Magnesium plays an essential role in many biochemical and physiological processes. Homeostasis of magnesium is tightly regulated and depends on the balance between intestinal absorption and renal excretion. During the last decades, various hereditary disorders of magnesium handling have been clinically characterized and genetic studies in affected individuals have led to the identification of some molecular components of cellular magnesium transport. In addition to these hereditary forms of magnesium deficiency, recent studies have revealed a high prevalence of latent hypomagnesemia in the general population. This finding is of special interest in view of the association between hypomagnesemia and common chronic diseases such as diabetes, coronary heart disease, hypertension, and asthma. However, valuable methods for the diagnosis of body and tissue magnesium deficiency are still lacking. This review focuses on clinical and genetic aspects of hereditary disorders of magnesium homeostasis. We will review primary defects of epithelial magnesium transport, disorders associated with defects in Ca(2+)/ Mg(2+) sensing, as well as diseases characterized by renal salt wasting and hypokalemic alkalosis, with special emphasis on disturbed magnesium homeostasis.