What is a septic tank and how does it work?

A septic tank collects and partially treats domestic wastewater. To ensure it functions properly, it must be emptied regularly.