The emergence of nationalism in India, particularly from the 1870s to 1947, stemmed from multiple factors, including social, political, and economic dissatisfaction with British rule. Political associations formed during this time, such as the Indian National Congress, played crucial roles in articulating the demands of diverse communities. Key movements like the Swadeshi Movement and the Non-Cooperation Movement marked significant milestones in mobilizing public sentiment against colonial oppression. Figures like Mahatma Gandhi pioneered the philosophy of nonviolent resistance, while the participation of various social groups — including women, peasants, and laborers — augmented the struggle for independence. However, internal divisions and communal sentiments culminated during the late 1930s to 1940s, resulting in the demand for a separate Muslim state and the eventual partition of India, creating profound challenges and legacies for the newly independent nation.