Eighteen corrections officers and a drug counselor are accused of trying to run a drug ring in two South Florida prisons.

The arrests announced Thursday by state and federal prosecutors were the result of a 2-year sting involving undercover FBI agents.

The officers allegedly agreed to protect and transport nine shipments of what they believed to contain multiple kilograms of cocaine from Miami to West Palm Beach. Three of the accused weren't corrections officers, but represented themselves to be.

Some of the guards were employed by the Department of Corrections at the Glades Correctional Institution and others by the privately run South Bay Correctional Facility. Both are in Palm Beach County.