30 December 2015 Last updated at 12:29 GMT
Fishermen and beach-goers, along with the police and the navy, helped get the 20-metre-long mammal safely back out to deeper water.
A blue whale has been rescued after getting stranded on a beach in the port city of Iquique in northern Chile, South America.