Former Mets stars Octavio Dotel and Luis Castillo were implicated by authorities Tuesday in an international drug-trafficking ring among the biggest in the history of their native Dominican Republic.

Dotel, 45, was arrested and Castillo, 43, named as an alleged member of the cocaine and opioid empire of César Emilio Peralta, dismantled in what Dominican Attorney General Jean Alain Rodríguez called the “largest operation against organized crime ever conducted in the country.”

In addition to the at-large Peralta — also known as “César the Abuser” — and his alleged lieutenants, “18 other people are also linked to this network, including athletes and professional baseball players Octavio Dotel and Luis Castillo,” according to the Attorney General’s office.

The exact allegations against the retired big-leaguers weren’t immediately specified, but prosecutors charged that Peralta leaned on his big-name pals to help launder his ill-gotten gains.

“To enter and launder the illicit money obtained from drug trafficking, ‘César the Abuser’ also created a complicated corporate framework to disguise the origin of his fortune, also using numerous individuals from his family and social circle to hide his assets, including two sports figures of the Dominican Republican,” according to an office press release.

That was the alleged end-game for what prosecutors described as a sprawling, multi-national narcotics organization dealt a crippling blow on Tuesday.

“More than 50 career prosecutors, assisted by 150 support servers and more than 500 agents from the National Drug Control Directorate and members of the Ministry of Defense, and having the proper judicial orders, proceeded to arrest… the main leaders of the criminal network,” Rodríguez told reporters.

His office described Peralta’s cartel as “one of the most important drug trafficking structures in the Caribbean region, the United States and the Dominican Republic, whose members used the Dominican Republic as a bridge for the transit and entry of illicit drugs to the United States from South America.”

Because of the international implications, the sweeping raid was conducted in coordination with the US Treasury Department’s designation of several Dominican nationals including Peralta as “significant foreign narcotics traffickers,” freezing their assets.

Dotel and Castillo are not named on that list.

On the ground in the Dominican Republic, several businesses and apartments allegedly tied to the ring were reportedly raided in the capital city of Santo Domingo, where Dotel was born.

“In the operation, they raided 15 nightclubs, 10 restaurants, three shopping malls and more than 20 luxury apartment buildings in the National District and Sto Dgo [Santo Domingo] East,” tweeted baseball journalist Antonio Puesán. “Among them, one in the Blue Tower building, where former baseball player David Ortiz also has one of those properties.”

Ortiz, the slugging designated hitter who helped end the Boston Red Sox’s World Series drought, was seriously wounded in a shooting at a Dominican Republic nightclub in June.

Investigators believe Ortiz was mistakenly targeted by a drug cartel assassin attempting a hit on another man.

Dotel, a shutdown relief pitcher in his prime, broke into the majors with the Mets in 1999, also toeing the rubber for the Yankees in 2006.

Those were just two of the 13 MLB teams for which the well-traveled right-hander pitched across a 15-year career that saw him compile a 59-50 record and a 3.78 ERA.

It was not immediately clear whether Dotel had retained a lawyer.

Attorneys for Castillo strongly denied any wrong-doing on the part of their client, even questioning whether police had the right Luis Castillo.

“Mr. Castillo has not been arrested or involved in any drug ring, cartel, drug trafficking, money laundering, or other criminal conspiracy,” wrote lawyer Alan Wilmot in a statement, adding that Castillo has not been indicted, lives full-time in Florida, and has not recently visited his home country.

Darren Heitner, lead attorney at the firm for which Wilmot works, added that he disputed his client had even been accused of anything, because Castillo had not been contacted by law-enforcement.

Castillo, a speedy, slick-fielding second baseman, retired in 2010 after a 14-year career that saw him make three All-Star teams and take the field for the Amazins, Miami Marlins, Minnesota Twins and Toronto Blue Jays.

He’s perhaps most remembered by Mets fans, however, for dropping a lazy pop-up in the ninth inning of a 2009 Subway Series game, giving the Yankees the win.

Additional reporting by Lorena Mongelli and Daniel Cassady, with Post Wires