The major waste products of the cells are nitrogenous wastes like ammonia and urea. Both of these compounds are toxic to the human body and must be removed from the blood regularly. The kidneys remove these wastes from the body. However, if the kidneys fail to function, the waste may accumulate and damage the internal organs of the body, which can even lead to the death of the organism. Therefore, in case of kidney failure, blood must be filtered periodically using a dialysis machine to remove the accumulated wastes from the body.
The dialysis machine cleans the blood of a person by removing the nitrogenous wastes products from it.