It is near a window but it's not in direct sunlight although that probably is causing the algae. I originally wanted it in the kitchen (not near the oven or other appliances) but had to build a new pantry instead because there wasn't enough room for food and the only other place was near the window.