Dialysis is a procedure to remove waste products and excess fluid from the blood when the kidneys stop working properly. It often involves diverting blood to a machine to be cleaned. Normally, the kidneys filter the blood, removing harmful waste products and excess fluid and turning these into urine to be passed out of the body.