Pollution. Algae are autotrophs, which means that they synthesize their own carbohydrates, fats, and proteins from carbon dioxide and more basic chemical substances in their environment. In general, an algae population will keep growing until its resources become limited or a predator keeps it in check. Under normal conditions, the ocean water does not have enough nutrients, such as phosphorous, to sustain a large growth rate of algae. The resources are thus limited.
The fertilizers that farmers use for crops, which are high in phosphorous content, can "run off" into a river or directly into the ocean. Similarly, a chemical plant may pollute a river or the ocean with a substance high in phosphorous. In both cases, the pollution serves as a source of the limiting nutrient that the algae needed to grow, and an algae bloom unfolds.
Higher water temperatures. There are optimal temperatures at which algae grow. In colder waters, the rate of algal growth is limited. At warmer water temperatures, however, the conditions are favorable for higher algae growth rates.
Besides the aesthetic costs, horrible smell, and clean-up required to make the beach a nice place again, the algae overgrowth induced by human tampering has detrimental consequences to the local ecosystem. Algae do not live too long, and when they die, they start to decay. In the process of decaying, dissolved oxygen in the ocean water is depleted so that the carbon in the dead algae can be converted to carbon dioxide again (see Trees come from air). As the oxygen is depleted from the water, the fish begin to die. Some species algae release toxins as they grow, which is another cause of detriment to the local ecosystem.