The research paper provides an analysis, comparison, and historical review of some important ideas. First, it offers an introduction to rebellion and revolution: people, whether individually or as a group, resort to methods of protest, armed or passive resistance, rebellion, and even revolution to maintain their psychological balance. The second idea is the distinction between two legal terms that we often use interchangeably: legitimacy and legality. Distinguishing between these terms helps us find appropriate answers to the questions we have raised. Third, the paper addresses the theories of social contract philosophers (Hobbes, Locke, Rousseau, etc.) regarding how to deal with a ruler who violates the rules established by the contract agreed upon by both the ruler and the governed. The paper concludes by deriving the main conclusions from the premises and ideas presented.