After several decades, petitions, and lawsuits, king Carlos II expedited a royal decree, on January 31, 1676, allowing Capitanía General of Guatemala to establish its university or "General Study." After a lengthy and cumbersome organizational process that lasted five years, the university started classes on January 7, 1681, with more than sixty registered students under President Doctor José de Baños y Soto Mayor, Cathedral archdeacon, King of Spain preacher and Doctor from the University of Osuna. The university began its activities under the protection of Saint Carlos Borromeo, and its norms and regulations were copied from those of the México University which, in turn, were adapted from those of the Universidad de Salamanca in Spain.