What were the most important factors that shape Mexican and Russian national identities?

Is national identity the result of social-cultural facts, like race, religion, and language, or is it the result of political-historical factors, like political leadership, geography, and war? What were the most important factors that shape Mexican and Russian national identities?use citations. sources can be pulled from anywhere on the internet.