In 1848, the government decreed that every new house should have a water-closet (WC) or ash-pit privy. "Night soil men" were engaged to empty the ash pits.
In 1861, Thomas Crapper was hired by Prince Edward (later King Edward VII) to construct lavatories in several royal palaces.