Hemodialysis is a type of dialysis that relies on diffusion of solutes across a semipermeable membrane. It is used to treat end-stage kidney disease and involves circulating blood through a dialyzer while dialysate fluid passes on the outside of the fibers. Peritoneal dialysis infuses dialysate fluid into the peritoneal cavity, allowing diffusion and ultrafiltration of solutes. Both have risks like infections, metabolic complications, and encapsulating peritoneal sclerosis. Kidney transplantation is the treatment of choice for advanced kidney failure and has better outcomes than long-term dialysis, but requires lifelong immunosuppression.