A man in Australia shared video of a close snake encounter. The security camera footage, which was published Sunday, shows the man’s dog looking at the snake and chasing it. The pup’s quick actions helped her owner get them both to safety.

RELATED: Top dog names in Tampa

“It looks like our dog stopped it going inside and if it wasn’t for her I would have probably kept looking at my phone. I think we were both a bit lucky today,” Drew S. writes on YouTube.

The encounter occurred in Pacific Pines, Queensland.

The brown snake causes the most snakebite deaths in Australia, according to Australian Reptile Park.

DON’T LEAVE UNTIL YOU CHECK OUT THESE STORIES: