A man with "explosive diarrhoea" lost his job after repeatedly pooing in front of his workmates.

Anthony Lear defecated in an “active work area” on the Yandi Mine in western Australia in March.

After getting the sack, he launched a fair work claim against his old employer, claiming he had been unfairly dismissed.

He had worked for BHP WAIO (Western Australian Iron Ore) for seven years before losing his job in April.

Mr Lear said there were no toilets on site and that he was suffering from “explosive diarrhoea”, the NCA Newswire reports.

During the first incident on March 9, he pooed down a drill hole and covered it up.

Mr Lear said there were no toilets on site and that he was suffering from 'explosive diarrhoea'

Another worker noticed Mr Lear drop a rock down the hole and asked what he was up to.

He responded: “I took a s*** down the hole”.

On March 27, Mr Lear realised he wouldn’t be able to last the eight-minute drive to the nearest toilet.

He said he moved into darkness and told another worker: “I’m about to s*** myself, turn around, turn around.”

Mr Jack Hughes, a production technician at Yandi Mine, noticed a bad smell and saw Mr Lear squatting.

During the first incident on March 9, he pooed down a drill hole and covered it up

He asked him: “What are you doing? Why are you s****ing?”

Mr Lear responded: “I couldn’t hold it.”

The FWC concluded the employer had a valid reason for dismissing him based on past, unrelated incidents at work, along with health and safety considerations.

A hearing document read: “Mr Lear’s dismissal was neither unjust, unreasonable nor harsh.”

WAIO said that if a worker cannot reach a toilet, they should move away from the site and onto surrounding land.