Scientists were so amazed by the beetle's sense of direction they decided to study how it did it.
Many creatures use the light of the sun to find their way.
But the scientists realised the beetle must be using the moonlight as its guide because it only lost its way on cloudy nights or when they couldn't see moonlight.
The discovery is being seen as a exciting breakthrough.
It's the first evidence animals use moonlight to guide them, and they think it could be happening across the animal kingdom.