A nearly completed high rise on the Upper West Side may have to remove 20 floors or more following a decision from the State Supreme Court.

Community groups tell NY1 the judge ruled in their favor against the developers of the 668 foot building currently being constructed on Amsterdam Avenue near 69th Street.

In 2015, SJP Properties bought the piece of land that had been assembled from multiple separate lots. It cost $275 million.

The corporation then began building the five-story tower, taller than what would have been allowed if they hadn't pulled land from adjacent lots.

Opponents say the developers created the 39-side lot to take advantage of a zoning loophole.