The footage shows two dogs swimming in the ocean near the West Australian town of Broome.
The dogs appear to be herding several sharks towards shore, when one suddenly ducks under the water and attacks a shark.
At the end of the video the dog emerges from the ocean and shakes the water from its fur.
There was no word on the fate of the shark.
The video has been viewed nearly 30 million times on YouTube.