In peritoneal dialysis (as in Haemodialysis), wastes are removed from the blood by a process called diffusion.
Excess water is removed from the blood in peritoneal dialysis by a process called osmosis, illustrated here. A substance (usually glucose) is put into the dialysis fluid which pulls the water from the blood.