A Thornlie man is probably not lovin' McDonald's after his fast-food splurge came back to bite him.

Samuel Michael Gossage was fined $10,000 after a fast food receipt was used to trace him and subsequently charge the 27-year-old with illegal dumping in a national park.

The asbestos fencing that was dumped.

Mr Gossage was hit with the supersized fine in the Armadale Magistrates Court on Tuesday for dumping fencing, which contained asbestos, in Korung National Park near Karragullen in June.

The Department of Environment Regulation was able to catch Mr Gossage after finding what appears to be a McDonald's receipt among the dumped fencing.