Nature is a joy, and whales creating rainbows are peak joyfulness.
It's not magic. It's just snot.
Whales are mammals, and this means they breathe through their lungs rather than gills.
They take a deep breath of air at the water surface and then hold it in their system to dive deep into the ocean to find their food.
Whales will then rise to the surface and 'breathe out' through their version of mammalian nostrils -- their blow hole(s). Contrary to popular belief, they release air -- not water -- through their blow hole.
Because it is at the surface of the ocean, air, gases and water vapour are spurted upwards, as well as.... mucus.
So the charming rainbow you see is actually light refracting on water and whale mucus.
But don't stop believing, nature is magical in its own right.
ALSO ON HUFFPOST AUSTRALIA