It is said that two monks, Máximo and Fromestano (), founded the city in 761. That settlement was soon to be completed with the construction of a small church dedicated to Saint Vincent. Oviedo was established on an uninhabited hillside, with no Visigothic or Roman foundation before it became an Asturian city. Following Pelagius, who died in 737, Alfonso I (739–57) founded a dynasty that reigned until 1037. The Asturian Kingdom was on hostile terms with southern Moorish Spain. In 794, Oviedo was sacked and pillaged by Caliph Hisham I in one of his numerous campaigns against the Christian kingdoms.