A suspect's hiding spot was given away when a bout of flatulence revealed his hiding place to police.

Law enforcement officers in Missouri caught a hidden man wanted for possession of a controlled substance when he farted loudly.

'If you've got a felony warrant for your arrest, the cops are looking for you and you pass gas so loud it gives up your hiding spot, you're definitely having a [poop emoji] day '#ItHappened the Clay County Sheriff's Office wrote in a Facebook post.

Law enforcement officers in Missouri caught a hidden man wanted for possession of a controlled substance when he farted loudly

The Sheriff's office added: 'The person was arrested over the weekend on a Clay County warrant for Possession of a Controlled Substance.

'We've gotta give props to Liberty (Missouri) PD for using their senses to sniff him out!'

Liberty Police Department joined in on the fun, tweeting about the incident.

'The Liberty Police Department was surprised to see this incident slip out, which stinks for the arrestee,'

Dozens of locals took to social media thanking the police department for catching the suspect

'Fortunately, no one was injured during his arrest.'

The city also thanked the sheriff's department for 'airing out a wanted person's dirty laundry and fanning the flames.'

After sharing the funny catch online, the post quickly tacked up thousands of likes, shares and comments.

Dozens of locals took to social media thanking the police department for catching the suspect.

'This makes me laugh every time I see it' one wrote.

'I just had to share this with some friends, thank you for your service!' wrote another.

'Now that's what I call a spontaneous utterance' joked a third.