The original title of Count of Moctezuma, from which it descends, was given by Philip IV of Spain in 1627 to Pedro Tesifón Moctezuma de la Cueva, 1st Viscount of Ilucán, Lord of Tula and Peza, a Knight of Santiago and a great-grandson of Moctezuma II through his son Pedro de Moctezuma Tlacahuepan. Charles II of Spain later granted the second holder of this title the qualification of de Tultengo, in reference to a town in the Mexican state of Hidalgo which was part of the inheritance of Moctezuma's son Pedro. All subsequent holders from 1635-1865 used the title, "Count of Moctezuma de Tultengo" until the advancement to the rank of duke removed de Tultengo.