Their purpose is to alert ground crew and other aircraft that an engine is starting up, running or shutting down, or that the aircraft is about to start moving. Some spin to produce the flashing effect, increasing the chance they will be noticed. Beacon lights are bright enough to be seen from the ground, and can be used to identify aircraft from the ground in dark or overcast conditions where the plane itself isn't completely visible.