It's a complicated process, but basically dialysis
involves a filter called a dialyzer that the patient's blood passes through.
Potentially harmful molecules in the blood are diffused across the filter membrane and eliminated as waste. Dialysis replaces some of the function of normal kidneys, but not all. It is better to stay healthy and prevent the need for dialysis if possible.