Officials in Nigeria say they have discovered what they describe as 'slave camps' in Mali, where thousands of girls are forced to work as prostitutes.
The girls, many of them under age, had often been promised jobs in Europe but ended up in brothels.
A government agency says the brothels are run by older Nigerian women who prevent them from leaving and take all their earnings.
The agency said it was working with Malian police to free the girls and help them return to Nigeria.
There has been no official comment from the Mali authorities.
The National Agency for the Prohibition of Traffic in Persons said officials visited Mali this month to follow up horrendous reports from victims, aid workers and clergy in Mali.
NAPTIP executive secretary Simon Egede said there were hundreds of brothels, each housing up to 200 girls, run by Nigerian madams who force them to work against their will and take their earnings.
We are talking of certainly between 20,000 and about 40,000, he said, but did not give details of how the figure had been reached.
In a statement, Mr Egede said girls were held in bondage for the purposes of forced sexual exploitation and servitude or slavery-like practices.
The madams control their freedom of movement, where they work, when they work and what they receive, he said.
NAPTIP said the trade is centred around the capital Bamako and large cities, but the most notorious brothels are in the mining towns of Kayes and Mopti, where the sex workers live in near slavery conditions.
Mr Egede said many of the brothels there also had abortion clinics where foetuses were removed by traditional healers for use in rituals.
The BBC reports most of the girls were reported to have come from Delta and Edo States in Nigeria.
Many were lured with the promise of work in Europe, given fake travel documents and made to swear an oath that they would not tell anyone where they were going.
On arrival in Mali they were told they would have to work as prostitutes to pay off their debts.
Prostitution is legal in Mali, but not if it involves minors.
NAPTIP said it had also uncovered two major trafficking routes used to transport the women from Nigeria through Benin, Niger or Bukina Faso to Mali.