New York City and its largest police union have reached a tentative deal on a new contract, Mayor Eric Adams announced Wednesday morning at City Hall.

The eight-year contract agreement with the Police Benevolent Association includes pay increases for rank-and-file NYPD officers ranging from 2.25% to 4% and an equity fund to increase starting salaries for NYPD officers, according to Adams.

The tentative agreement, which will cover approximately 23,000 officers, is retroactive, starting on Aug. 1, 2017 and running through July 31, 2025, the city said. Members of the PBA have been working under an expired contract since 2017.

“New York City will always support the men and women of the NYPD as they do one of the toughest jobs anywhere — and today, we’re proud to announce a historic deal with the Police Benevolent Association that will do just that,” Mayor Adams said in a statement.

The city said the deal also includes a new pilot program that will introduce 10- and 12-hour shifts for officers. The program will allow the NYPD to increase staffing during times when crime is highest, according to the city.

“This is a contract agreement for the future, not just for New York City police officers but for our entire city,” said PBA President Patrick J. Lynch. “The challenges police officers face on our streets have never been greater, and our work has never been more critical to the city’s success.

The city said the total cost of the tentative agreement will tally to around $5.5 billion through fiscal year 2027, is fully funded for the first three years and “has a net budgetary impact of approximately $2 billion through FY27.”

The agreement comes after the city struck a tentative labor deal with District Council 37, the city’s biggest municipal employees union, in February. DC37 represents more than 1,000 titles and approximately 80,000 workers.