After independence from Spain in the early nineteenth century, there were many songs popular with the public that were an attempt to be a national anthem, but none succeeded. Finally, in 1853, President Santa Ana announced a nation-wide contest for the lyrics for a new national anthem. One of the entrants, an accomplished poet named Francicso González Bocanegra, was originally not interested in entering. However, his fiancée was confident in his skills and, under false pretenses, lured him into a room of her parent’s house and locked him inside, refusing to let him out until he wrote an entry for the contest. After four hours, using the pictures in the room of the epics of Mexican history as his inspiration, Bocanegra finally won his freedom by slipping a ten verse poem under the door. His fiancée and her father approved of the submission, and so did the judging committee, his entry won unanimously.
After the contest for the lyrics came the contest for the melody. This contest was won by Jaime Nunó Roca, a Spaniard from the small Catalan Pyrennes town of Sant Joan de les Abadesses, who was conductor of the National Band He titled his entry “Dios y Libertad” (God and Freedom). The combination of Nunó’s music with González’s lyrics was first presented to the nation at the Independence Day celebrations on September 16, 1854. Shortly after his work was adopted as the national anthem, Nunó Roca left Mexico to spend the rest of his life in Buffalo, New York, United States, and sold the anthem to a music house in that country. When he visited Mexico in 1901, he was given a state reception, a medal, and money. He passed away in 1908, but in 1942, shortly before the national anthem was officially adopted, his remains were flown to Mexico and given a state funeral in the Hall of Heroes, where Francicso González Bocanegra was also buried.
In 1943, the anthem was officially adopted, and at that time it was decreed that the first, fifth, sixth, and tenth verses would comprise the anthem. When a shorter version of the anthem is required, it is somtimes performed with the chorus, then the first verse, followed by the chorus, followed by the tenth verse, followed by the chorus; a shorter version still just has the chorus, first verse, and the chorus.
Special thanks to: Bernardo Galker, Rafael Zorzano, Raimon Duran, and “Raffu” for some of this information.