Quoted By:
In Spanish, the word "patria" (fatherland, female in gender) is used to refer to Mexico as a concept.
Mexico is a loan word from Nahuatl, a language that does not distinguish between male and female grammatical genders. It's often thought of as a male noun in Spanish because it ends in -o.