Baghi (بغيُ) refers to transgression and infringement on the rights of others, rebellion, or armed uprising against a legitimate Imam or Islamic ruler. A person who commits baghi is called "Baghi." This concept is addressed in the Islamic Penal Code of Iran.