The kidneys are responsible for excreting water and waste products from the body. They filter the blood, removing excess water, toxins, and waste products, which are then excreted as urine. The other options mentioned, such as glands, liver, and stomach, do play important roles in the body, but they are not primarily responsible for excreting water and waste products.