Fish tanks stay clean through a combination of regular maintenance practices. This includes performing partial water changes, cleaning the gravel or substrate, removing uneaten food and waste, maintaining proper filtration, and regularly checking the water parameters such as pH, ammonia, nitrite, and nitrate levels. It's important to establish a cleaning routine and keep up with maintenance to ensure a healthy and clean environment for the fish.