Get a filter if you don't already have one, and get plants for in your tank, they can help filter the water and keep the tank clean. You can also buy bottom feeder fish that keep the tank clean as well.
You can read about algae here: http://www.aquariumpros.com/articles/algae.shtml