The federal government will reimburse the city $26 million for the cost of protecting President Donald Trump after the election. View Full Caption DNAinfo/Ben Fractenberg

MIDTOWN — The city will get nearly $26 million in reimbursements for costs associated with protecting President Donald Trump between the election and inauguration day, officials said.

The money was awarded through a Department of Justice grant program and will go to the NYPD and Suffolk County Police Department. The city spent about $308,000 per day on security when Trump was in town and about $146,000 a day when he was away, according to political leaders.

“The NYPD and FDNY did an exceptional job meeting the unprecedented demands of protecting then-President elect Trump in and around Trump Tower, which is in the heart of Manhattan in my district,” Congresswoman Carolyn Maloney said in a statement Thursday.

“It was simply unfair to expect local law enforcement and New York City taxpayers alone to bear the costs of a national security priority. This had to be a federal responsibility, and I was very pleased that Congress appropriated funds for reimbursement to affected localities earlier this year, as I and many of colleagues urged.”

The state will receive the money in about two weeks and then distribute the funds to the city, a spokesman for Congressman Daniel Donovan told DNAinfo New York.

Mayor Bill de Blasio originally asked for $35 million in reimbursements back in December, but the estimate of costs incurred was lowered to $25.7 million.

De Blasio said city taxpayers would get back some of the money.

“That’s excellent news for our city and the hardworking police officers faced with this unprecedented security challenge,” the mayor said in a statement.