CAIRO (Reuters) - An Egyptian court on Thursday convicted 37 people on charges related to illicit trading in human organs and sentenced them to prison terms ranging from three to 15 years in jail, witnesses said.

The Cairo Criminal Court also cleared three people in the case involving a total of 41 people, including doctors, nurses and middlemen who were rounded up during a 2016 raid in which millions of dollars were recovered.

The raid was part of an investigation that focused on private hospitals and health centers, both licensed and unlicensed, where transplants and organ harvesting took place, the health ministry said at the time.

Organ buying is banned in the North African Arab country, but poverty drives some Egyptians to sell body parts, often to wealthy foreigners, in illicit transactions.

Witnesses said six of the suspects convicted on Thursday were sentenced to 15 years in jail and fined 500,000 Egyptian pounds ($28,000) each, 11 were sentenced to seven years in jail each and fined 300,000 Egyptian pounds and 20 received three-year-jail sentences and a 200,000 Egyptian pound fine.

Three were cleared of any charges, while the final suspect had died before the hearing.

Under Egyptian law, defendants have 60 days to appeal against their convictions.