[What you need to know to start the day: Get New York Today in your inbox.]

A former police commander was acquitted of federal corruption charges on Wednesday after a seven-week trial in which prosecutors contended he had done favors for two businessmen in return for lavish gifts, including a junket to Las Vegas with a prostitute.

The jury in Federal District Court in Manhattan found James Grant, who was a deputy inspector in the New York Police Department, not guilty on all charges. Still, jurors decided to convict one of the businessmen, Jeremy Reichberg, on several bribery and conspiracy charges involving other police officials.

The jury found Mr. Reichberg not guilty on one count — that he had paid bribes to Mr. Grant. After the verdict, Mr. Grant turned to Mr. Reichberg and quietly said: “You’re going to be O.K.”

The case had cast a shadow over the Police Department and had even tarnished the image of the mayor, Bill de Blasio, though he was not accused of wrongdoing.