Hemodialysis reroutes the blood to a dialysis machine. The machine cleans toxins from the blood and regulates the levels of essential chemicals, such as potassium.