Insufficient sanitizer levels are the main cause but improper water balance and poor circulation can attribute to algae as well.