This is the remarkable moment one million ants worked together to construct a bridge to invade a giant wasp nest.

The perfectly arranged ants were captured in Brazil forming the bizarre build in order to attack the enemy.

Francisco Boni, an electrical engineer, who captured the footage wrote on Twitter: ‘Attack of legionary ants (also known as army ants or marabunta) to a wasp honeycomb.

This is the remarkable moment one million army ants worked together to construct a bridge to invade a giant wasp nest

‘Impressive the level of swarm intelligence and collective computation to form that bridge.’

He added: ‘When this type of attack happens, the wasps usually escape and the ants do not leave until they've completely looted the honeycomb, carrying pupae, larvae, and eggs, as well as some adults who did not manage to escape.

‘They can even build across the water!’

The perfectly arranged ants were captured in Brazil forming the bizarre build in order to attack the enemy

Explaining how the bridge like structure benefited the events, he said: ‘For ants it is more effective to follow the trail over a bridge that goes down and then up than in an inverted upside down walk.

‘Also likely that upside down the ants can't carry significant loads.’

The footage was posted yesterday and has been watched nearly 400,000 times and retweeted nearly 5,000 times.

‘Legionary ants’ are often characterised by their aggressive techniques when it comes to gathering food.