Nitrates are the final byproduct of the breakdown of ammonia and nitrites. Ammonia is produced from fish poopies and rotting food. Nitrifying bacteria in your tank (on the glass, the ornaments, the gravel and in the filter) breakdown ammonia and nitrites into nitrates. Nitrates can be removed only with live plants (lots of them) or water changes. Nitrate levels that are too high are toxic BUT less toxic than ammonia and nitrites.