The Cuomo Administration has rejected a controversial natural gas pipeline that was to be built underneath New York harbor.

The northeast supply enhancement project, also known as the Williams pipeline, was expected to help meet a shortage of energy in Queens, Brooklyn and on parts of Long Island. The pipeline is an extension of an existing pipeline that provides natural gas that has been extracted through fracking in Pennsylvania.

The New York State Department of Environmental Conservation rejected the pipeline extension Friday evening, claiming it would harm New York’s water quality.

The rejection was a major victory for environmentalists who had opposed it.