In medicine, dialysis is a process for removing waste and excess water from the blood and is used primarily as an artificial replacement for lost kidney function in people with kidney failure. The kidneys have important roles in maintaining health. When healthy, the kidneys maintain the body’s internal equilibrium of water and minerals. The acidic metabolism end-products that the body cannot get rid of via respiration are also excreted through the kidneys. Dialysis is an imperfect treatment to replace kidney function because it does not correct the compromised endocrine functions of the kidney. Dialysis treatments replace some of these functions through diffusion (waste removal) and ultra filtration.