Kidney do the filtration of the blood. If the kidney is not working properly, then it can be done by the dialysis. The blood comes outside of the body and goes to the machine, and passes through a semipermeable membrane. Where it removes the metabolic wastes and conserve the essential component of the blood.