The main purpose of the kidneys is to make urine by filtering toxins out of the blood. Toxins are chemicals that are harmful to the body.