Lighthouse, structure, usually with a tower, built onshore or on the seabed to serve as an aid to maritime coastal navigation, warning mariners of hazards, establishing their position, and guiding them to their destinations. Electronic navigation systems have had a great effect on the role of lighthouses.