 On May 31, 1579, Luis Carvajal signed an agreement with King Philip II of Spain to pacify the region and to establish the state of Nuevo León; the contract authorized him to do this in an area that did not exceed 200 leagues on a side.The first Spanish settlement in Nuevo León took place in 1582 in Cerralvo, which thus included the first capital of the state.In 1630, this settlement was renamed "Villa de San Gregorio de Cerralvo", after the fifteenth Viceroy of New Spain, Rodrigo Pacheco y Osorio, marqués de Cerralvo.