The factors that led to the rise of nationalism in India are as follows:
British conquest of Indian territories and kingdoms
Introduction of new laws and administrative systems
Rise of an educated middle class
Perceived threat to the old order and caste system by colonial laws
Revolt of 1857
Economic deprivation suffered by peasants
Dissatisfaction with British rule