IT WAS a feat that was always destined for failure.

This overly ambitious green tree frog took on a snake three times its length.

Johannes Solymosi and his wife Heidi watched the bizarre encounter on the patio of their home in Gympie, Queensland, and pulled out their camera, posting the video on YouTube.

"It was quite interesting, just seeing that frog trying to shove the snake into its mouth with its front legs," Mr Solymosi said. "It was quite bizarre."

Gallery: Cute animals at play

Gallery: The world's amazing animals

Not ready to be eaten, the snake fought back, trying to wrap itself around the back legs of the hungry frog.

But the battle ended amicably, with both frog and snake surviving and calling a truce.

Originally published as OK, what am I going to do with this