The high times are over.

A writer for the infamous marijuana magazine High Times and a rap producer who helped co-found Roc-A-Fella records with Jay-Z were among 50 people charged in a major federal pot-ring takedown.

Former hip-hop mogul Kareem “Biggs” Burke, who helped found the famous rap label in 1996, was arrested at his North Bergen, NJ, home yesterday as part of a sweep called operation Green Venom,” in which more than $2 million in profits and 177 pounds of marijuana were seized by the feds.

Also arrested was Matthew Woodstock Stang, who is an ad rep and senior writer for High Times. He allegedly supplied high-quality pot to the scheme’s ringleader, who was identified yesterday as Geovanny “Manny” Rodriguez Perez.

“In the case of the High Times employee, it’s a case of art imitating real life,”

said Jim Hayes, special agent in charge of Homeland Security Investigations for Immigration and Customs Enforcement.

The ring allegedly manufactured the marijuana in the greater Miami area and shipped it to New York in tractor trailers that also contained legal merchandise.

“Right now we are focused on taking down the network and, as the investigation continues, we want to make sure that other rival networks or other co-conspirators cannot use the same tools,” Hayes said.

The ring operated for some 20 years, and was responsible for several acts of drug violence, federal officials said. It was taken down in an 18-month probe. In yesterday’s raids, 45 of the 50 suspected ring members were arrested, and a car with a secret compartment holding 20 pounds of pot worth $20,000 was found in Manhattan.

Burke was held after an arraignment hearing in Manhattan federal court while his lawyer and the feds talked about a bail deal. Authorities said they did not believe Jay-Z was involved in the drug ring in any way.

Stang was freed on $500,000 bail, $100,000 of which had to be cash. He also was ordered to wear a monitoring bracelet. High Times declined to comment on the arrest.

Burke helped co-found Roc-A-Fella Records in 1996 with Jay-Z and Damon Dash, after the pair had been turned down by several record labels.

They landed a distribution deal with Priority Records and released Jay-Z’s classic debut album, Reasonable Doubt.

Kareem “Biggs” Burke and the others face 10 years to life in prison for allegedly distributing over 1,000 kilos of the drug.