Dialysis works on the diffusion of solutes and ultrafiltration of liquid over a semi-penetrable layer. . The two types of dialysis, Hemodialysis and Peritoneal dialysis removes wastes and water from the blood  in various ways.

Hemodialysis: Hemodialysis required with the patients of renal failure. In this process of Hemodialysis, an artificial kidney purifies blood. where blood can easily be taken from the body and directed to the artificial kidney for purification

Peritoneal dialysis: In peritoneal dialysis no artificial kidney is used. The peritoneum is used as a filter instead of artificial kidney. Peritoneal dialysis is of two types they are continuous cycling peritoneal dialysis and continuous ambulatory peritoneal dialysis. Peritoneal dialysis is used in kidney failure patients.