During the Bronze age, an estimated 50% of the population had complex outside street drains to dispose of sewage, mainly to help reduce the smell. This turned into an underground sewage system using manufactured clay pipes, which led to the Tigris and Euphrates rivers to dispose of the waste.
https://jennaancientmesopotamia.weebly.com/what-was-their-sanitation-and-nutrition-like.html