New York City has acquired the third and final section of the High Line, an elevated stretch of historic freight rail line that’s been converted to a public park.

Mayor Michael Bloomberg and City Council Speaker Christine Quinn said Monday that CSX Transportation Inc. donated the rail yards section to the city.

Initial designs for that section were unveiled in March.

The ownership transfer clears the way for construction of the final stretch of the High Line. It’ll wrap around the planned Hudson Rail Yards between West 30th and 34th streets.

The Hudson Yards will be developed on the current site of the LIRR storage yard. It’ll feature more than 12 million square feet of new office, residential, retail and cultural space — and 14 acres of public space.