Three male baboons escaped their transportation as they were being delivered to Royal Prince Alfred Hospital in Sydney.

A male baboon scheduled to have a vasectomy was part of a trio of primates that managed to escape and were on the loose in a carpark near Royal Prince Alfred Hospital in Sydney’s inner west yesterday.

A NSW Police spokeswoman told news.com.au that officers were called to a carpark on Missenden Rd and Lucas St, Camperdown just before 5.30pm after reports three baboons had escaped while being transported.

Footage obtained by 7 News shows three baboons emerging from the hospital and making their way towards a parked ambulance while passersby look on in amazement.

NSW Health Minister Brad Hazzard told The Daily Telegraph that one of the baboons was due to have a vasectomy at the hospital and he was being accompanied by his two wives to “keep him comfortable”.

“After the operation him and the two wives will return to the colony where he can stay forever with them but he will no longer be having babies,” Mr Hazzard said.

The baboons escaped from a truck while being transported from a colony in Western Sydney, to an animal research facility at the hospital.

Mr Hazzard said baboons were used as part of medical research ranging from kidney disease to pregnancy issues.

“The research includes reproductive issues, kidney disease, gestational diabetes — a whole range of research areas and with the conclusion of the research they return to the colony in Western Sydney and they usually just live their lives out until old age.”

RELATED: Baboons being experimented on at Sydney hospital

EXCLUSIVE: Footage sent to https://t.co/TWh1KQycs4 shows the moment a baboon trio emerged from Sydney's Royal Prince Alfred Hospital just before 5.30pm. https://t.co/dg4F8KcEYc #7NEWS pic.twitter.com/nn0xG60nJI — 7NEWS Sydney (@7NewsSydney) February 25, 2020

In a Twitter post shortly before 7pm, NSW Police said the situation was under control.

“They are currently contained,” the police spokeswoman confirmed. “Police are working with experts to safely return them to their facility.

“There is no immediate danger to the public but people are advised to avoid the area.”

NSW Health has been contacted for comment.

The use of primates for medical experiments at RPA and a number of other Sydney hospitals and universities was revealed in 2016.

Animals are bred specifically for animal research at the National Health and Medical Research Council baboon colony in Wallacia, in Sydney’s west.

A spokeswoman from the Sydney Local Health District told The Sydney Morning Herald in 2016 that the baboons are used for research on treatments for conditions like pre-eclampsia, complicated diabetes, kidney disorders and vascular diseases.

Earlier, a woman told 2GB that her daughter, who worked at RPA, had seen the baboons.

“My daughter is an occupational therapist at RPA and she said “yes mum I just helped wrangle them,” she said to 2GB.

This is not a Mandrill! Earlier this afternoon, a troop of baboons escaped from a facility and were going bananas in Camperdown. Police and wildlife handlers now have the situation under control, so please let them do their job and don't be tempted to pry, mates. — NSW Police Force (@nswpolice) February 25, 2020

I kid you not - I've had several reports come through the open line on @2GB873 about some BABOONS on the loose near RPA Hospital in Sydney. #BaboonWatch pic.twitter.com/ogPN7hStm9 — Ben Fordham (@BenFordham) February 25, 2020

The news of baboons loose in Sydney sparked jokes and commentary on social media.

Feeling very 28 Days Later about these baboons to be honest. — John Birmingham (@JohnBirmingham) February 25, 2020

I cannot stress enough how much of a Code Red situation this is for me. This is my moon landing https://t.co/EIPhfHu9VX — henno (@jrhennessy) February 25, 2020

Anyone surprised by baboons in Newtown hasn’t been down King St on a Saturday night. — courtney thompson (@courtneypearlt) February 25, 2020

It is of crucial importance that the authorities do not underestimate the guile of these baboons. They could be anywhere. Disguised as a baby with a bonnet and rattle, dressed in a bellhop’s uniform - even now they could be imitating the butler of a short-sighted dowager. — Ben Jenkins (@bencjenkins) February 25, 2020

It’s not the first time animals have been loose in Sydney’s inner west.

In 2014, water buffaloes broke free while filming a Korean Samsung commercial and travelled for more than two kilometres before being caught by authorities.