The ideology of Pakistan is based on Islam and the two-nation theory which states that Hindus and Muslims are two distinct nations. Pakistan was created to provide a separate homeland for Muslims where they could live according to Islamic principles and establish an Islamic welfare state based on the Quran and Sunnah. The two-nation theory maintained that despite living together, Hindus and Muslims had maintained distinct religious identities, cultures, and political interests. Religion, not language or ethnicity, was the sole basis for the ideology of Pakistan and the force that united Muslims for the cause of an independent state.