The main function of the kidneys is to filter toxins from the blood.