The lighthouse was erected to replace an earlier structure, which was only 7 meters high, emitted a light that was blending with other lights of the city, and was already in danger of falling into ruin.