Now when Athaliah the mother of Ahaziah saw that her son was dead, she arose and destroyed all the royal family.
2 Kings 11:1

Might does not make right. Occupying an office doesn't necessarily give anyone authority to exercise the power of that office, and the people are sometimes right to resist with all possible force and means.