OAKTON, Va. (WUSA) -- A Virginia dentist accused of illegally getting prescription pain pills and then distributing them to his patients and women he dated has been arrested, says the United States Attorney for the Eastern District of Virginia.

Fifty-year-old Hamada Makarita was charged with distributing a controlled substance. That charge carries a maximum penalty of 20 years in prison.

According to a criminal complaint affidavit, Makarita has a dental practice on Chain Bridge Road in Oakton. He allegedly called in prescriptions under the names of his workers and patients that were not medically necessary. Makarita is also accused of prescribing medication to patients before dental procedures and then requiring the patients to return leftover pills to him.

The affidavit alleges that in 2008 and 2009 Makarita was going through a divorce and began to illegally obtain these medication. He is accused of giving prescription medicine to women during their dates, bragging that he caused them to pass out, and taking explicit photos of the women while they were under the influence of the drugs. The complaint alleges that one of his female patients also had a sexual relationship with the dentist, and during that time she got prescription narcotics from him. She allegedly received it for her drug habit, and not dental treatment.

Also, according to the affidavit, Makarita illegally obtained nearly 2,000 prescription pills from January 2007 to January 2010 that were unrelated to his dental practice, including highly addictive pain medicines and sedatives.

The FBI's Washington Field Office conducted the investigation of the case, which is part of a larger investigation called Operation Cotton Candy that focuses on illegal distribution by doctors, pharmacists, nurses and patients.