Dialysis is a way to remove waste products and extra water from the blood of patients with kidney failure. The two main types of dialysis are hemodialysis and peritoneal dialysis.