Disturbing new surveillance footage shows the moment a gunman opens fire on students during the deadly massacre at a Brazil school — and when his accomplice attacks victims with an ax.

Former students Guilherme Taucci Monteiro, 17, and 25-year-old Henrique de Castro carried out the attack at the school in the Sao Paulo suburb on Wednesday using a gun, crossbows and small axes.

Five students and two staffers were killed during the rampage that ended when the attackers killed themselves.

Police say the ex-students at the school shot and killed a man who owned a used car dealership nearby before they launched the massacre at the school.

Online surveillance footage shows Monteiro in the foyer of the school pulling a .38-caliber handgun from his waistband before he turns around and aims at students nearby.

Monteiro can be seen shooting several people in the head as they try to flee, the Associated Press reported.

Moments later, de Castro can be seen hacking at wounded victims on the ground with an ax and swinging it at others while students run away.

The footage then shows de Castro arming a bow as he walks farther into the school, according to the AP.

Nine others were wounded in the attack and seven of those remained hospitalized as of Thursday morning, according to a statement from the health secretary.

Shortly before the heinous attack, Monteiro posted 26 photos on his Facebook page that included several with a gun and one that showed him giving the middle finger.

In one of the photos, Monteiro could be seen wearing a black scarf over his face with an imprint of a skull and bones as he holds up a gun.

With Post wires