Electrolyte imbalances can result from exposure to substances such as heavy metals, alcohol, and certain medications. These substances can interfere with the body's ability to regulate electrolytes by affecting renal function, gastrointestinal absorption, and cellular transport mechanisms. For example, excessive alcohol consumption can lead to low magnesium levels, while certain diuretics can cause hypokalemia.