Dialysis involves circulating the patient's blood through a machine that contains a semipermeable membrane. This membrane allows small molecules, such as toxins, to pass through while retaining larger molecules like proteins and blood cells. As a result, waste products and excess fluids are removed, cleansing the blood. There are two main types of dialysis used in toxicology: hemodialysis and peritoneal dialysis.