Colonialism had a significant impact on the development of nationalism as it created new identities and cultural practices among colonized peoples. It also led to the emergence of anti-colonial nationalist movements that sought to reclaim national sovereignty and independence.