This document describes a compact wastewater treatment system using MBR/MBBR technology. It provides excellent quality treated sewage using minimal space. The system combines fixed film and activated sludge processes for high treatment efficiency and stability. It allows for water recycling and reuse while saving water, energy, and protecting the environment. The system is designed for small footprints and low operation and maintenance costs.