New York state prosecutors may now bring charges against individuals who get presidential pardons from a president they are closely connected to, thanks to legislation signed by Gov. Andrew Cuomo on Wednesday.

The new law shutters New York’s so-called “double jeopardy loophole” barring prosecutors from bringing state-level charges against an individual pardoned by the president for similar charges on the federal level.

“No one is above the law and New York will not turn a blind eye to criminality, no matter who seeks to protect them,” said Cuomo.

“The closure of this egregious loophole gives prosecutors the ability to stand up against any abuse of power, and helps ensure that no politically motivated, self-serving action is sanctioned under law. I thank the attorney general for her work to advance this much-needed reform and by signing it into law we are taking another step toward a stronger, fairer and more just Empire State for all.”

The bill was championed by state Attorney General Letitia James and was decried as a direct shot at President Trump, his family and associates — notably, in the case of former Trump campaign manager Paul Manafort, who is serving a 7½-year sentence following two federal indictments related to fraud.

Double jeopardy doesn’t apply in Manafort’s case, as state prosecutors argue there are legal differences in state law separate from the federal crimes.

The law only applies to anyone who worked in any sitting president’s administration, campaign or transition team, a for-profit or not-for-profit owned or controlled by the president, or possesses information that may aid an investigation of the president who granted the pardon.

It also applies to the president’s family members.

“New York has been the focus of so much of the scandal and criminal wrongdoing that surrounded Washington politics, whether it’s taken place in a New York bank or involving incidents surrounding financial activities,” the bill’s sponsor, state Sen. Todd Kaminsky (D-Nassau), a former federal prosecutor, told The Post.

“A presidential pardon stops a state from going after these crimes. I think this really struck people as being unfair.”

Effective immediately, the law applies to all future offenses, as well as retroactive prosecution in cases where the individual has not yet been tried or entered a plea.