Electrolytes are minerals in the body that carry an electric charge. They are essential for various bodily functions, including nerve function, muscle contraction, hydration, and maintaining the acid-base balance. Common electrolytes include sodium, potassium, calcium, and magnesium.