A sweep by law enforcement authorities at Rikers Island, part of a monthslong investigation into wrongdoing at the jail complex, led to the arrests of two correction officers on Monday night and more than 20 inmates on Tuesday, officials said.

The officers and inmates were part of what officials with the Department of Investigation and the Department of Correction described as a network of contraband smuggling and other criminality at Rikers that has undermined security at the jail complex and contributed to surging violence. The search also uncovered stashes of marijuana, tobacco and weapons. Before Monday, at least 12 other correction officers and their superiors were referred for prosecution as part of the investigation. They were accused of drug trafficking, inmate abuse and falsifying documents, the officials said.

“Criminal conduct in the correctional facilities will not be tolerated,” Mark G. Peters, commissioner of the Department of Investigation, and Joseph Ponte, commissioner of the Department of Correction, said in a statement. If an inmate breaks the law in jail, it is treated as a new arrest. More arrests are expected, officials said.

In just one measure of the rising levels of violence, there were 1,844 uses of force by correction officers at the jail complex from January to May this year, a number that has doubled in the previous three years during the same period, according to the Correction Department. Also during this period, there were 274 drug recoveries and 868 weapons confiscated, the department said.