Political legitimacy in Islam is derived from the principles of Sharia, the consensus of the Muslim community (Ummah), and the leadership's adherence to Islamic values and justice. It emphasizes the ruler's responsibility to govern in accordance with Islamic law and the welfare of the people, ensuring that authority is exercised in a manner consistent with the teachings of the Quran and Sunnah.