An agile spider that somersaults down sand dunes has been discovered in the deserts of Morocco. The dancing arachnid has even been nicknamed the "flic-flac spider" for its gymnastic dexterity and has served as inspiration for a creepy-crawly robot.

Researchers officially named the spider gymnast Cebrennus rechenbergi after Ingo Rechenberg, a scientist from Berlin who discovered the animal on a trip to Morocco five years ago.

"I caught the spider by hand, and I took it to my car — and in the morning, I tried to take a good photograph of the spider," Rechenberg said, adding that he then took the spider with him to Germany and showed it to arachnologist Peter Jäger, who determined that the animal was a new species.

Cebrennus rechenbergi looks similar to another spider species, Cebrennus villosus, which lives in Tunisia. Jäger distinguished C. rechenbergi from its Tunisian cousin by looking at minute differences in the sex organs of the spiders.

"However, the unique mode of locomotion also serves as a criterion to distinguish the species," Jäger said in a statement.

The spider propels itself off the ground and moves its legs in a flic-flac motion to go uphill, downhill or on level ground. On the other hand, its Tunisian relative moves only by rolling its body down sand dunes. In fact, the flic-flac moves propel the spider across the sand at some 6.5 feet per second (2 meters per second), which is twice as fast as its walking speed. [In Photos: New Spider Species Cartwheels Down Sand Dunes]

C. rechenbergi is nocturnal and lives in the Erg Chebbi desert in southeastern Morocco, close to the Algerian border. To protect itself from the sun and predators, the animal weaves tubelike "towers" in the sand that are held together by silk threads.

Inspired by the spider's unusual movement mechanism, Rechenberg, a bionics expert, developed a 10-inch-long (25 centimeters) model of a spider robot. The robot — named Tabbot after "Tabacha," which means spider in the Berber language — can move by both walking and turning somersaults, just like the creature it's modeled after.

"We tried to imitate the movement of the spider" while building the model, Rechenberg told LiveScience.

The study describing the spider species was published April 17 in the journal Zootaxa.

Follow Agata Blaszczak-Boxe on Twitter . Follow Live Science @livescienceFacebook Google+. Original article on LiveScience.

Related on LiveScience and MNN:

This story was originally written for LiveScience and was republished with permission here. Copyright 2014 LiveScience, a TechMediaNetwork company.