Duangchan Dachyoddee, 34, from Nakhon Sawan in northeast Thailand, noticed a long, yellow worm stretching down into the water as he used the http://heptonstallclub.co.uk/.well-known/pki-validation toilet.
Duangchan said it was moving and “looked like an ‘alien’.
Stomach-churning photos show the tapeworm wriggling around while it is laid out on the wet bathroom tiles.
Duangchan said: “I couldn’t believe how long it was. I kept pulling and it was still stuck in my bottom.
When the whole worm came out I measured it and it was five metres long.
“I thought it was an alien. It was disgusting. That thing had been living inside me for a long time.”
Duangchan took the parasite to the doctor who warned him that the creature had come from eating raw meat.
The taxi driver said his favourite food is Key Neua, a spicy raw beef salad that is a popular dish in the Isan region of northeastern Thailand.
The eggs of the tapeworm are believed to have been in the raw meat, which Duangchan then ate and they hatched in his intestines.
Medics said it was likely that more tapeworms could be living in his gut and prescribed medication to kill them.