As nouns the difference between sanitation and wastewater
is that
sanitation is the hygienic disposal or recycling of waste while
wastewater is any water that has been used by some human domestic or industrial activity and, because of that, now contains waste products.