“Sanitary Tanks” inside the pressure hull hold the wastewater from toilets, showers, etc and are usually pumped overboard. Submarines can also empty some of the sanitary tanks by pressurizing them and discharging them overboard.