The son of a Roman patrician called John, Gregory was apparently an energetic but mild churchman, renowned for his learning. Consecrated a priest during the pontificate of Pope Paschal I, at the time of Pope Valentine’s death in 827, Gregory was the cardinal priest of the Basilica of St Mark in Rome. Like his predecessor, Gregory was nominated by the nobility, and the electors unanimously agreed that he was the most worthy to become the bishop of Rome. They found him at the Basilica of Saints Cosmas and Damian where, despite his protestations, he was taken and installed at the Lateran Palace, after which he was enthroned as pope-elect sometime in October 827. Gregory’s elevation to the papal see is believed to represent a continuation of the attempts to control the local political situation in Rome which had begun during Pope Eugene II’s pontificate.