Most people think of a filter as a sieve that keeps the water clear. Clear water is a bonus. A filter's main job is to house the microbes that keep your fish alive.
Two jobs in one box
The important job is biological filtration. The filter houses the microbes that turn toxic ammonia into nitrite, then into far safer nitrate.1
It also traps floating dirt, which is mechanical filtration. Fish farms have studied this closely and find about half of what fish eat comes out as solid waste, so they remove solids first, before they smother the microbes.2 That's why the sponge comes before the biological media in your filter (see the filter media page).
Some densely planted tanks run without a filter, but for a beginner it isn't worth the risk. The myths page explains why.
Surface area
The microbes grow as a thin film, called biofilm, on everything wet: filter media, pipes, glass.1 The more surface the media offers, the more microbes it holds, and the more ammonia it can handle.
The catch is that the finest media, which holds the most microbes, also clogs soonest.3 Most filters use a mix of coarse and fine layers for that reason.
The brown gunk is mostly good
A healthy filter looks dirty. The brown film on old media contains the biofilm your fish depend on, which is why keepers rinse it gently rather than scrubbing it clean.
Never use tap water or bleach on it. Disinfecting a biofilter kills the nitrifying microbes along with any germs.1 Rinse media gently in old tank water, and only when the flow drops.4
The microbes also need oxygen to do their job,1 which means three things in practice:
- Don't leave the filter off for long. Keepers find that after a few hours without flow the microbes start to die back and the water inside goes stale. After a long power cut, rinse the media in tank water before restarting, so the stale water isn't flushed into the tank, and test for ammonia over the next few days.
- Keep water flowing through the media. A clogged sponge starves the microbes behind it, so rinse it in old tank water when the flow drops.4
- Keep the surface moving, so oxygen gets into the water in the first place. The aeration page shows how.
Steps 1 and 3 come from keeper experience rather than research.