Nationalism discourages imperialism and colonialism. The resistance to any form of external occupation is one of the features of nationalism. National liberation struggles or freedom struggles across the world are a product of nationalism. It thus encourages self-determination e.g., India’s struggle for freedom from European colonialism.