The ideology of Pakistan is based on Islamic principles and envisions Pakistan as a state where Muslims can live according to Islamic rules and freely profess their religion. The two-nation theory, espoused by Muhammad Ali Jinnah and Allama Iqbal, formed the basis for Pakistan's creation - it stated that Hindus and Muslims in India were distinct cultural/political nations and Muslims required a separate homeland. The factors that led to the idea of a separate Muslim homeland included anti-Muslim campaigns, British oppression of Muslims, Hindu betrayal of Muslim interests, and the failure to gain independence as a united India.