Electrolytes have many functions throughout the body for instance controlling the water balance in the body. Also assisting transmitting nerve impulses and helping your muscles relax and contract.
For example Sodium chloride which is also know by the formula NaCl, is a compound which is formed from the process of ionic bonding with Sodium and Chloride. However sodium chloride is a vital electrolyte commonly present in plasma, blood and lymph fluid. The functions of this electrolyte include maintaining the complete amount of water in the body and maintains the nerve and muscle function and regulates the blood capacity.
Electrolytes are gained by our diet as some of the foods we eat hold the minerals that when dissolved in the fluids within our body electrolytes are formed. However electrolytes are lost through urine, sweat, vomit and feces.
To maintain balance within the body, there are mechanisms put in place. The kidney functions to control water and electrolytes concentrations. If the body intakes too much water, the kidneys begins to process urine so that the balance is maintained.