Complex sentence: Santa Anna named him commander of the garrison of Mexico City, where he would die a few months later, in December.
Split into simpler sentences: Santa Anna named him commander of the garrison of Mexico City. He died in Mexico City a few months later, in December.