When your kidneys are healthy, they clean your blood. They also make hormones that keep your bones strong and your blood healthy. When your kidneys fail, you need treatment to replace the work your kidneys used to do. Unless you have a kidney transplant , you will need a treatment called dialysis. There are two main types of dialysis: hemodialysis and peritoneal dialysis. Both types filter your blood to rid your body of harmful wastes, extra salt and water. Hemodialysis does that with a machine. Peritoneal dialysis uses the lining of your abdomen, called the peritoneal membrane, to filter your blood. Each type has both risks and benefits. They also require that you follow a special diet. Your doctor can help you decide the best type of dialysis for you.