Lighthouses are equipped with powerful lights. In a dark night, even if Earth’s curvature obscures the entire structure of the lighthouse, the phenomenon of the loom of the light allows their lights to be visible beyond the horizon; not unlike how the beam of a green laser is visible to our eyes.
Flat-Earthers like to point out the cases where the light from a lighthouse is visible even if the lighthouse should be completely obscured by Earth’s curvature. They would claim it as “proof” that the Earth is flat. They are wrong. The loom of the light lets us see the light even when the lighthouse itself is below the horizon.