Afonso showed extraordinary vision for the time. Progressive measures taken during his kingship include: representatives of the commons, besides the nobility and clergy, were involved in governance; the end of preventive arrests such that henceforward all arrests had to be first presented to a judge to determine the detention measure; and fiscal innovation, such as negotiating extraordinary taxes with the mercantile classes and direct taxation of the Church, rather than debasement of the coinage. These may have led to his excommunication by the holy see and possibly precipitated his death, and his son Denis's premature rise to the throne at only 18 years old.