A massive python was caught after it swallowed a chicken in Mersing, Malaysia, on Wednesday.

Villagers spotted the 16-foot-long reptile and alerted the Civil Defence Force about it. The officials rushed to the scene and rescued the snake.

“Upon arrival at the location, the Civil Defence Force personnel found a snake at about five meters above the goat’s shed. According to information received from the complainants, the python was also believed to have devoured one of the villager’s chickens," Mersing Civil Defence Force officer Captain (CD) Nurnajibah Abdullah said.

Nurnajibah added the rescue operation, that involved three personnel, took around 20 minutes as the python had “wrapped itself around one of the shed’s pillars” to avoid being caught.

“Following that, the python has been successfully secured at the Mersing District Civil Defence Force operations control centre and will be handed over to the state Wildlife and National Parks Department (Perhilitan),” she said.

The incident comes a few months after an 18-foot-long python swallowed a goat alive before regurgitating it in Johor, Malaysia. The reptile sneaked into the goat’s pen and swallowed the animal completely. Officials from the local fire and rescue station arrived at the scene and captured the reptile almost 25 minutes after it had regurgitated the goat.

python This representational image shows a python on a tree inside his enclosure at the Dhupguri snake park in India, Feb. 8, 2006. Photo: REUTERS/Rupak De Chowdhuri