Footage has emerged of a snake taking a “dive bomb” out of a tree outside a Sunshine Coast school.

The common tree snake was hanging out in a tree in front of the school office when one of the groundskeepers tried to move it along.

Sunshine Coast Snake Catchers owner Richie Gilbert shared footage of the attempted move, which saw the snake take a “big leap” from one tree to the next, amid screams from onlookers.

“One of the janitors went to relocate it themselves, given it is not a dangerous snake and they just wanted to move it away from the kids who were hassling it,” Mr Gilbert said.