Phosphates were formerly used in detergents, which washed into rivers and lakes, causing water blooms of algae and bacteria (see eutrophication); such use is now generally outlawed or regulated. Phosphates are still used in fertilizers, baking powder, and toothpaste.