The plot of many a movie in the past.
Peasants attacked by bandits.
Government gives peasants guns to protect themselves.
Bandits defeated by the peasants who now consider themselves free men.
Government has the people turn in the guns.
Government then attacks the people.
I liked the original, well second iteration of the Magnificent Seven with Yul Brenner. No doubt you know it was adapted for Seven Samurai. The more recent version, not so much.