Ramiro I's (842–850) eight-year tenure was uneasy, he faced rebellions from the Counts of the Palace. The first rebellion against Ramiro I was led by Alroitus, and the second rebellion was led by Piniolus. Both of these rebellions were unsuccessful in removing Ramiro I. These rebellions may have been why Ramiro I built his palace in the mountains surrounding Oviedo, presumably away from the violence. During the 9th century in Oviedo, Roman style property law is common. 9th century documents also indicate small scale aristocracies across the kingdom, as well as a large presence of a landowning peasantry.