Nationalism in Vietnam arose due to French exploitation, social inequality, and cultural suppression. The desire for self-rule grew after observing successful anti-colonial movements in other countries. The spread of nationalist ideas led to resistance against French colonial rule and the fight for independence.