It is a pain in the butt. It occurs in new tanks quite often and after a few months settles down and disappears. But it doesn't always.
Incorrect lighting can contribute to it growing as can dirty sediment and lack of water movement. Some people black the tank out completely for 3 days and that sometimes kills it but if it is a virulent strain it just knocks it back a bit. A complete blackout is exactly that. Turn the lights off and cover the tank in a blanket or black plastic or something light proof. Leave it completely covered for 3 days and nights and then remove. Give it a couple of hours before you turn the lights on. Try to have lights with a 10,000Kelvin rating as triphosphor lights (around 4000K) tend to encourage it. The blue light in a 10,000K globe helps to limit its growth. Have some bottom dwellers to stir it up when they move around. Hermit crabs and sand sifting gobies can be helpful. Some blennies will eat it. Make sure no food lands on the bottom because that will encourage it.