Lighting at airports depends upon the type, and density of air traffic using the airport. Most airports are used at night as well as daytime, therefore lighting is required. Also, operations during IFR weather conditions require the use of lighting.
Lights are used to "Lead" the aircraft towards the runway. There are many types of approach lights used at airports, but all serve the same purpose.