Sources told NY1 on Wednesday that seven NYPD officers have been busted for their alleged involvement in a prostitution ring.

Several sources confirmed to NY1 that seven uniformed police officers were arrested this morning by the department's Internal Affairs Bureau in connection with a gambling and prostitution ring that spans three years.

The officers arrested range in age from 32 to 49 and face multiple charges. 37-year-old NYPD Sergeant Cliff Nieves and 32-year-old NYPD Officer Steven Nieves were charged with Promoting Prostitution.

According to sources, three of the defendants are sergeants, two are detectives, and two are police officers assigned to commands in Brooklyn and Queens. Sources said two other detectives have also been placed on modified duty.

Sources said some 40 civilians were also arrested in connection to this case, and also said this ring provided private protection to this criminal operation.

"Today, those who swore an oath and then betrayed it have felt the consequences of that infidelity," Police Commissioner James O'Neill said in a statement. "There is no place in the NYPD for criminal or unethical behavior."

This investigation started after an NYPD officer caught wind of what was going on and alerted the department's Internal Affairs Bureau in April 2015. Undercover officers involved in the probe used surveillance and wire taps.

Sources said a retired detective, whose wife is an escort, originally started the prostitution ring.

According to sources, the brothels that the officers allegedly ran were located in Sunset Park and along Roosevelt Ave. in Queens.

The Queens district attorney's office is slated to prosecute these cases. The defendants are expected to be arraigned in Queens Supreme Court on Thursday.