A school resource officer was honored at an Illinois high school graduation for his heroic actions after he stopped a school shooter from taking any lives.

Officer Mark Dallas received a standing ovation Sunday as he led Dixon High School students into their graduation ceremony.

Matthew Milby, 19, brought a gun into the school and shot at a coach during graduation practice — but Dallas was able to take the shooter down as students ran for their lives, police said (the scene that day is shown above).

“Today would not have turned out the same without you being here, so from the class of 2018, we love you,” senior class Vice President Emma Krull said from the stage. “You, Mark Dallas, are our hero, and we are all Dixon strong.”

Because of Dallas’ actions, 182 seniors were able to walk across the stage and receive their high school diplomas — each shaking their hero’s hand, and one, Dallas’ son, Josh, giving him a hug.

“I never would have thought, ‘Oh, it’s going to happen in Dixon,’ and it happens at graduation practice,” senior Ashely Jones told FOX 32.

Police say Milby, who is being held on a $2 million bail after being charged with firing shots, suffered injuries that were not life-threatening.

Related: Armed H.S. Resource Officer Takes Down Shooter, Thwarting Mass Casualties

Dixon’s graduation came just days after the Santa Fe, Texas, school shooting, which killed 10 people.

This Fox News piece is used by permission.

Who do you think would win the Presidency?

By completing the poll, you agree to receive emails from LifeZette, occasional offers from our partners and that you've read and agree to our privacy policy and legal statement.

Read more at Fox News:
Stephen King Slammed for ‘Cruel’ Joke About Melania Trump’s Kidney Surgery
Keith Richards Says He Wants to ‘Get Rid of Trump,’ Says Last Time He Was Angry at POTUS He Whipped Out ‘Trusty Blade’
Sentencing Date in Bill Cosby Sexual Assault Case Set