KENNEBUNK — Two men allegedly involved in selling drugs in York County were arrested last week, Kennebunk police and the Maine Drug Enforcement Agency said.

Zoran Trajanoski, 26, of Wells, was charged with aggravated unlawful trafficking in heroin. Kennebunk police said the charge is aggravated because he allegedly sold drugs near a school in Biddeford.

Matthew Danis, 26, of Arundel, was charged with trafficking in marijuana and violating bail conditions. Kennebunk police said Danis was out on bail while awaiting trial on a charge of aggravated trafficking in heroin. In that case, he allegedly sold heroin to a Kennebunk man who subsequently died of a drug overdose.

Both men were arrested Sept. 12 after an investigation that involved surveillance and undercover purchases of drugs, according to police.