Fluorescent lighting operates by passing an electric current through a gas containing mercury vapor, which produces ultraviolet light. This light then excites a phosphor coating on the inside of the bulb, causing it to fluoresce and emit visible light. Fluorescent lights are known for their energy efficiency and long lifespan, making them popular for various indoor lighting applications.