Huajuapan de León is a rural city with a surrounding municipality located in the northwestern part of the Mexican state of Oaxaca. It is part of the Huajuapan District in the north of the Mixteca Region. The name of Huajuapan comes probably from the Nahuatl words for guaje (huaxitl) and river (apan), meaning "River of the guaje trees". The town was elevated to an honorary Mexican status in June 1843 in remembrance of The siege of Huajuapan, a battle between the royal army and the insurgents led by José María Morelos, which was won by the insurgents. The city is named after Antonio de León, a hero of the Mexican War of Independence.