This practice emphasized in Shi'a Islam whereby adherents may conceal their religion when they are under threat, persecution, or compulsion.Taqiyya was developed to protect Shi'ites who were usually in minority and under pressure. In the Shi'a view, taqiyya is lawful in situations where there is overwhelming danger of loss of life or property and where no danger to religion would occur thereby.
The majority Sunni Muslims rarely found it necessary to hide their beliefs. However, there are examples of practicing taqiyya among Sunnis where it was necessary. In the Sunni view, denying your faith under duress is "only at most permitted and not under all circumstances obligatory".