PORTSMOUTH — Two men were arrested last week on charges they sold marijuana and cocaine within the city of Portsmouth.

Portsmouth police announced the arrests Monday, following an investigation that involved the Drug Enforcement Administration and at least six other law enforcement agencies.

The first arrest came on Nov. 15. Police took 29-year-old Rochester resident Ryan Costantino into custody and charged him with two felony counts of selling marijuana.

Costantino, who lives at 114 Maple St., was arraigned on Friday, Nov. 16, and ordered held on $5,000 cash bail, according to an announcement provided by Portsmouth Police Lieutenant Michael Maloney. Costantino was also held on a detainer issued by the probation and parole branch of the New Hampshire Department of Corrections.

Police also arrested Jose Torres, 33, of Waverly Avenue, Andover, Mass., on Nov. 16. He faces three charges alleging sale and possession of cocaine, all felonies. Torres was arrested by the Epping Police Department and is awaiting arraignment.

According to court documents, Torres sold crack cocaine to a confidential informant working with Portsmouth police on three separate occasions between November and December 2011.

All three sales allegedly took place inside a black 2004 Acura SE with Massachusetts plates driven by Torres and registered under his name.

On Nov. 10, 2011, Torres Allegedly sold 1 gram of crack cocaine to the informant while parked on Richards Avenue for $200.

Nine days later, the informant allegedly met Torres again and paid him another $200 for about three quarters of a gram of crack. The exchange took place at 2:14 p.m. on Richards Avenue, according to details provided in the criminal citation.

Then on Dec. 21, 2011, Torres allegedly sold a quantity of crack weighing 1.19 grams to the informant on Greenleaf Avenue for $300.

The criminal complaints against Torres show that he lived on High Street in Lawrence at the time of the alleged drug sales.

Torres was arraigned Monday and ordered held on $20,000 cash bail, according to court documents. A probable cause hearing has been scheduled for Nov. 28 at 8:30 a.m.

No documents were on file in Portsmouth Circuit Court Monday pertaining to the arrest of Costantino. A Portsmouth police spokesman could not be reached for comment.

Cooperating in the investigation that led to the arrests of Costantino and Torres were the DEA, Portsmouth and Epping police, the New Hampshire Department of Corrections, the Joint Fugitive Task Force, and the Strafford and Rockingham County sheriff's offices.