A synergistic partial-denitrification, anammox and in-situ fermentation (SPDAF) process for advanced nitrogen removal from domestic and nitrate-containing wastewater.