The 'two-nation theory' was based on the principle that Hindus and Muslims in India constituted two separate nations, each deserving their own country. This theory played a crucial role in the partition of British India in 1947, leading to the creation of India and Pakistan. Pakistan was established as a separate state for Muslims, while India remained a secular state, accommodating all religious groups.