What organ purifies the blood by removing excess water and waste products?

The kidneys are the organs that handle the filtration of the blood and the removal of solutes such as ammonia and ions like sodium as well as retention or excretion of water.