Its the cycle of the tank

Ammonia is converted to nitrites then nitrates. Nitrates are usually removed by water changes or other methods like algae scrubbers, nitrate pads, or other media. Live rock is the key to it all because it will breakdown nitrates and remove them from the tank.

+1 to what cliff said above on the water changes and media for the filters.