The Patrolmen’s Benevolent Association has spent more than $59,000 in recent days on mailers for former members of the Independent Democratic Caucus in the state Senate, records show.

The beneficiaries were former IDC head and Bronx Sen. Jeff Klein, Queens Sen. Jose Peralta and Manhattan Sen. Marisol Alcantara.

“These guys have stood up for public safety interests for years,” said a PBA source. “They’re in tough races and we want to stand by the folks who have done the most on public safety.”

The source said the spending would likely reach the “mid-six figures.” The PBA currently has $801,000 in its political account.

The spending comes as the state’s Democratic establishment is split over the IDC senators, who used to caucuses with Republicans.

Sen. Kirsten Gillibrand, endorsed four IDC challengers — three of whom are in races where the PBA is spending money — on Saturday.

In a slew of announcements, Gillibrand announced she was backing Alessandra Biaggi, who is challenging Klein; Jessica Ramos, who’s running against Peralta; Robert Jackson over Alcantara; and Zellnor Myrie over Brooklyn state Sen. Jesse Hamilton.

Those four races are among the most hotly contested state Senate primaries on the Sept. 13th Democratic ballot.