A school resource officer disarmed a student who pulled out a loaded gun during a fight on Monday at a high school in Stockton, California, according to police. 

The suspect, a 17-year-old male, was booked into juvenile hall on charges of battery, criminal threats, resisting arrest, and weapon charges. 

Lincoln High School resource officer

A school resource officer could be seen taking the handgun away from the suspect during the fight.  (Stockton Police Department)

The fight broke out on campus around lunch time at Lincoln High School, which serves nearly 3,000 students. 

ARIZONA DAD ARRESTED AFTER MASSIVE BRAWL INVOLVING SONS ERUPTS AT HIGH SCHOOL, POLICE SAY

"When our SRO and school staff were breaking it up our SRO saw the [suspect] pull out a gun from his waistband and that’s when our SRO took him down on the ground and disarmed him," Joseph Silva, a spokesperson for the Stockton Police Department, told Fox News Digital. 

Gun seized at California high school

The Stockton Police Department released this image of a gun that was seized during a fight at Lincoln High School.  (Stockton Police Department)

Two students sustained minor injuries during the fight. 

CLICK HERE TO GET THE FOX NEWS APP

Kat Bender, the principal at Lincoln High School, told parents in a message on Monday that two separate fights broke out on campus around 12:20 p.m., but were quickly addressed by staff and school safety officers. 

"We are in the process of fully investigating the incidents so we can respond appropriately. As always, your student’s safety is of utmost concern," the principal told parents. 

"I want to express appreciation for the Stockton Police Department and our District Safety Officers as well as the swift responses of our campus and administrative staff for their support and presence throughout the incidents."