Orlando police officials say the fight broke out Tuesday morning at Glenridge Middle School.
The school's resource officer sprayed the chemical on the students when they didn't comply with his commands to stop fighting. Local news outlets report the officer used the stun gun when the pepper spray didn't stop the students.
Five students, including the two who were arrested, were treated at the school by firefighters. Additional details were not immediately available.
Copyright 2018 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.