A three-day strike on the nation’s largest commuter rail system ended after marathon negotiations concluded Monday with the unions and Long Island Rail Road reaching a tentative deal.

The deal was announced by New York Gov. Kathy Hochul in a post on X, who described it as delivering raises for workers while protecting riders and taxpayers.

The deal still needs to be ratified by the rank-and-file members of the five unions that went on strike. If rejected, the strike could resume.

For now, 3,500 workers are set to return to work on Tuesday. While service will not resume in time for the morning rush hour, phased service is due to resume at noon, Hochul said.

The strike started early Saturday after 11th-hour talks failed between the unions and the Metropolitan Transportation Authority, which runs the railway. Both sides met again on Sunday and negotiated, with a brief break overnight, until they reached an agreement.