Researchers have found that open defecation leads to stunted growth, and also higher child mortality rates. The later could explain another puzzle of India--why Hindu children have higher mortality rates than Muslim children, even though Hindus are on average richer and more educated.
It turns out that Indian Muslims are about 20 percent more likely to use toilets than Indian Hindus, regardless of income level.
Here's an article on this: http://arstechnica.com/science/2014/06/open-defecation-solve...
Here's a research paper on the connection between open defecation and stunted growth: http://journals.plos.org/plosone/article?id=10.1371/journal....
Standardized earthen plumbing pipes with broad flanges making use of asphalt for preventing leakages appeared in the urban settlements of the Indus Valley Civilization by 2700 B.C.[5]
https://en.wikipedia.org/wiki/Plumbing
https://en.wikipedia.org/wiki/History_of_water_supply_and_sa...
https://en.wikipedia.org/wiki/Sanitation_of_the_Indus_Valley...