The plumbing system of Medieval castles was designed so that waste products would flow straight into the moat that surrounded the castle. These “Garderobes” extended outside of the walls of the castle and had a opening at the bottom that would empty into the moat.