PORTLAND — Two New York City men have been charged with selling drugs after police seized nearly 500 Ecstasy pills with an estimated street value of $15,000.

Jogonmoy Chowdhury and Faizan Mahmood, both 19, were arrested Friday and are each being held on $50,000 bail at the Cumberland County Jail, according to the Maine Drug Enforcement Agency and Portland Police.

Agents arrested the men Friday night when they arrived at a motel on Riverside Street. Both men had a large plastic bag of the drugs in their pants, said Steve McCausland, spokesman for the Maine Department of Public Safety.

The arrests were the result of a two-week investigation by the MDEA and several state, federal and local law enforcement agencies, McCausland said in a press release.

Ecstasy, also known as MDMA, is a synthetic drug with amphetamine-like and hallucinogenic properties, McCausland said.