Dialysis is a treatment that replaces kidney function by removing waste and excess fluid from the blood. It is commonly prescribed for those with temporary or permanent kidney failure, as their kidneys cannot remove fluids from the body. There are two main types of dialysis - hemodialysis, which circulates blood outside the body through a machine, and peritoneal dialysis, which uses the lining of the abdomen as a filter through a surgically implanted catheter. Dialysis is the primary treatment option for end stage renal disease besides kidney transplantation.