Intracellularly stored polysulfur maintains homeostasis of pH and provides bioenergy for phosphorus metabolism in the sulfur-associated enhanced biological phosphorus removal (SEBPR) process. (November 2019)