Algae growing how to prevent?

This is the same algae that destroyed my last aquarium how can I stop it?