Ammonia
Ammonia is toxic. If a goldfish tank is dirty from their waste, the fish can suffer from ammonia burns which cause black spots or patches on their body. The tank must be large enough and have a filter.