Historically, a dhimmi was a person who is protected under Islamic law by a pact contracted between non-Muslims and authorities from their Muslim government: this status was first made available to non-Muslims who were People of the Book (e.g. Jews and Christians), but was later extended to include Sikhs, Zoroastrians, Mandeans, Hindus and Buddhists. People of the Book living in non-Islamic nations were not considered dhimmis.
Non-Muslim People of the Book living in an Islamic nation under Sharia law were given a number of rights, such as the right to freely practice their faith in private and to receive state protection. In turn, they had a legal responsibility, the payment of a special tax called jizya ("tribute") in place of zakat. The social structure of the Ottoman Empire would serve as an example of how non-Muslims were treated.
Because of the Hindu traditions of Vedanta and Upanishads, and the prominent Hindu theological perspective that there is a single Reality (Brahman) from which the world arises, Hindus eventually have been included as dhimmis.
The Yazidi, Druze and Azali faiths are small post-Islamic monotheistic faiths whose adherents mainly reside in Muslim-majority countries. Because they number very few and have seldom disturbed, countered or threatened Muslim authority, they are usually regarded as dhimmis.
The definition of "dhimmi" always excludes followers of the Bahá'í Faith. This is because the Bahá'í Faith, which grew out of Shi'a Islam, is a post-Islamic religion which does not accept the finality of Muhammad's revelation. Instead, Bahá'ís believe in the concept of progressive revelation, which states that God's will is progressively revealed through different teachers at different times, and that there will never be a final revelation.
The Ahmadis (usually referred to by Muslims as Qadianis) of Pakistan are also not regarded as dhimmis by the vast majority of Muslims. This is largely due to the fact that their prophet, Mirza Ghulam Ahmad, came over 1,300 years after Muhammad, who is viewed as the "last of the prophets" by Sunni, Shia, and Ibadi variants of Islam. They differ from other post-Islamic faiths in Muslim lands because Ahmadis first began as an Islamic reform movement, threatening the established orthodoxy present in South Asian Islam, and further was embraced by highly socially upward mobile westernizing Muslim intellectuals of the day. These factors, compounded with the presence of the colonial British authorities in India who had overthrown the Muslim Mughal Empire, led Muslims to view the presence of Ahmadis as a fifth column serving the British colonizers, and as a threat to "true" Islam. Pakistan to this day requires its citizens to swear an oath of allegiance to Islam, and declare Mirza Gulam Ahmad to be an apostate, should they elect to register as a Muslim for governmental services.
Read more about this topic: People Of The Book