The historic Gay Head Lighthouse on Martha’s Vineyard’s westernmost point is being moved inland to protect it from falling off the eroding cliff where it is currently situated.

The Associated Press noted that moving the structure will cost around $3 million and will take place over the course of the next few days. The beacon will then be placed in its new spot about 130 feet away from the cliffside on Saturday.

The process of moving it began Thursday when the 400-ton, 52-foot lighthouse was lifted off the ground and onto a steel frame.

NECN reported that the project is being funded through donations and grants.

Gay Head is one of five lighthouses on the island of Martha’s Vineyard. It was built in 1844 to replace a wooden tower authorized in 1799 by the second U.S. President, James Adams. In 1987, it was placed on the National Register of Historic Places, but the the structure has always been threatened by the eroding cliffs it sits on. The beacon is among the most endangered of all other historic landmarks.

For more daily news stories follow Michelle on Twitter @PhilaMichelle