Hemodialysis is used to treat kidney failure. Kidney failure is when the kidneys can no longer remove waste products from the blood.