What causes algae on tank glass?

the tank has been running for ages no problems, but now I have algae on the glass, tank is not in direct sunlight,light is on for around 8 hrs a day