If your doctor diagnoses you with kidney failure, don't panic! You have treatment options. Dialysis acts as an external filter, cleaning your blood through a machine. There are two main types: hemodialysis (done in a clinic) and peritoneal dialysis (done at home). Another option is a kidney transplant, where a healthy kidney from a donor replaces the failing one.