It was bananas!

Dozens of baboons escaped from an enclosure at the largest zoo in Paris on Friday, sparking a shutdown and a wild chase that saw cops scrambling to wrangle the pesky primates.

At least 52 of the monkeys went ape — breaking free and running amok near a large rock structure at The Paris Zoological Park, according to the French newspaper Le Parisien.

Zoo officials evacuated the 36-acre park and called in cops with tranquilizer guns, who weren’t monkeying around as they rounded up the out-of-control ­escapees.

“Our colleagues have them surrounded,” an officer told Le Parisien newspaper.

“They can be dangerous. They mustn’t get out of the park,” the officer warned.

A vet working at the zoo first noticed the animal jailbreak at around noon when she spotted a baboon scampering near a service corridor used by park employees.

She called up zoo officials, who frantically evacuated visitors, noting that the sneaky simians can be dangerous when “stressed,” said The Guardian newspaper.

Zoo officials still have no clue how the animals escaped.

The primates have been known to attack humans when they feel threatened, zoo officials warned.

“Baboons are large and potentially very aggressive,” a zoo official said, according to the Guardian.

The critters may be physically smaller than humans but “they’re stronger than us,” the official added.

Police officers used nets to catch the runaways, nabbing 48 of the critters by Friday evening, a zoo official told the Guardian.

The remaining four monkeys are likely still on zoo grounds and are expected to be caught, according to the zoo — but pedestrians walking nearby were warned to stay alert for the beasts.

“They are almost certainly all in the park woods, but anybody in the area needs to keep a look out,” a spokesman said.

Roads surrounding the zoo were closed and checkpoints with police cars were set up Friday afternoon.

The animals were never in contact with visitors or members of the public, according to the zoo.