Pathum Thani, Thailand (NBC) — A Thai man narrowly escaped a snake attack Sunday as a cobra emerged from his toilet bowl in the second such incident reported in Thailand in about two weeks.

The twenty-seven year old man told local media he spotted the cobra, popping its head out from the toilet bowl. 

After rescue officials were called in, the cobra managed to disappear in the toilet pipes.

It took 30 minutes for the rescue team to lure the three-foot long cobra out by opening up the septic tank and spraying in pesticides.

Once caught, the cobra was transferred to an institute in Bangkok, which specializes in handling venomous snakes.

The incident comes shortly after another Thai man was attacked by a python in his toilet.

Join our Newsletter for the latest news right to your inbox