WATERVILLE — Police arrested two people on aggravated drug charges Wednesday after a two-year investigation.

Ruben Rincon, 32, and Amanda Sanipas, 29, were both arrested around 10 a.m. after police executed a search warrant and found $13,000 in drugs and more than $3,500 in cash, according to a news release from Deputy Chief Bill Bonney.

The investigation began when Waterville Detective Duane Cloutier conducted undercover purchases of heroin from Sanipas, who lives with Rincon at an apartment at the Home Place Inn at 150 College Ave. in Waterville, police said.

Cloutier, working with Somerset County Sheriff Detective Lt. Carl Gottardi, found that Sapinas and Rincon, who is from Lowell, Massachusetts, allegedly were distributing “a large amount” of heroin in the Waterville area. Police allege that Sapinas and Rincon would drive to Lowell to receive drugs and bring them back to Waterville.

The Maine Drug Enforcement Agency assisted with surveillance, the news release says.

Law enforcement officers executed a search warrant on the pair during a traffic stop on Sturtevant Street and said they found small amounts of cocaine and either fentanyl or acetyl fentanyl on Rincon.

Fentanyl is a narcotic used to treat pain that can be 30 to 50 times stronger than heroin. Acetyl fentanyl is a designer drug that is about 15 times stronger than heroin.

“Sanipas and Rincon had been selling the fentanyl or acetyl fentanyl as heroin, putting those suffering from substance abuse disorder at extreme risk of overdose,” Bonney said in the news release.

At the apartment, officers found about 80 grams of fentanyl or acetyl fentanyl and 5.3 grams of cocaine. They also found three sandwich bags full of marijuana, a PT-92 Taurus 9 mm handgun, $3,640 in cash and what Bonney described as enough opioid-related drug paraphernalia to “fill a grocery bag.”

Officers also found one dose of Narcan, a nasal spray of the drug naloxone, which is used to treat narcotic overdoses in emergencies.

Sanipas was arrested on two charges of unlawful trafficking in Schedule W drugs for the heroin, a Class B felony, and one charge of aggravated trafficking in Schedule W drugs for the fentanyl or acetyl fentanyl, a Class A felony; and on a warrant for failure to pay fines for operating after suspension, with prior offenses.

Rincon was arrested on a charge of aggravated trafficking of Schedule W drugs, a Class A felony. He was also summoned on a charge of possession of Schedule W drugs, a Class D misdemeanor, for the cocaine that officers found.

Both were brought to the Kennebec County jail in Augusta. Sanipas is being held on cash bail of $4,878 and will appear in court at the Capital Judicial Center in Augusta in January.

Rincon is being held on a surety bail of $20,000, meaning someone has to put up $20,000 worth of property for his bail. His bail also comes with the condition that he not leave Maine. He is scheduled to appear in court at the Capital Judicial Center in December.

Law enforcement officials praised the work of detectives across different departments.

“This type of teamwork is exactly what our communities need to help reduce the supply of deadly opiates in our community,” Bonney said in a statement.

Waterville Chief Joseph Massey said in a statement that it is imperative that people confront the growing effect of drugs in communities.

“There is no one approach to this scourge that affects so many individuals,” he said. “I believe we need a multi-faceted approach of aggressive enforcement, education and treatment if we are to make inroads in reducing and treating opiate abuse. Law enforcement agencies are working cooperatively to bring about successful drug investigations such as this one.”