A tube, also known as a catheter, is surgically placed in the peritoneal cavity. A solution called dialysate flows into the peritoneal cavity through the catheter. The solution interacts with the blood through the peritoneum, filtering out toxins and cleaning the blood.