For Zhengyang Wang, who was part of a team of researchers who published a report on the ant trade in 2023 focusing on China, this is a worry and could “wreak havoc” with local ecosystems.

“Initially, we were very excited when we learnt that many people have taken up keeping ants,” Wang, assistant professor at Sichuan University, told the BBC.

“A colony of pet ants are often kept in a formicarium, which is basically a transparent plastic box so that keepers can observe colonies at work, digging tunnels, collecting food, and guarding their queen. I’d say it’s quite charming and… can be a good way of educating people about insects and their behaviour.

“But then we realised, wait, isn’t keeping invasive species incredibly dangerous?”

Monitoring online sales – of more than 58,000 colonies – in China over six months, the researchers found that more than a quarter of the traded species were not native to China – despite it being illegal to import them.

“If the trade volume of invasive ants continues to grow, it’s only a matter of time before a few escape from their formicaria and become established in the wild,” said Wang.

The study he worked on, published in the journal Biological Conservation, external, explained what could happen in the case of giant African harvester, one of the most traded species in China: “For example, Messor cephalotes, an East African native, is among the largest seed harvesters in the world and could potentially disrupt predominantly grain-based agriculture in south-eastern China.”

The environmental consequences are also a concern in Kenya.

“Harvester ants are both keystone species and ecosystem engineers. They harvest seeds of grasses, and other plants and in so doing also help to disperse the seeds,” said Martins, adding that the insects “create a more healthy and dynamic grassland”.

Mukonyi Watai, a senior scientist at Kenya’s Wildlife Research and Training Institute, shares these fears.

“Unsustainable harvesting – particularly the removal of queen ants – can lead to colony collapse, disrupting ecosystems and threatening biodiversity,” he told the BBC.

It is possible to collect ants legally in Kenya – in line with various international treaties – with a special permit, which would require the buyer to sign a benefit-sharing agreement with the local community involved to split any profits.

But, according to the KWS, so far none have been applied for – with the paperwork also requiring details of how many ants are being collected and their destination.