Rome plugged along with noble families and popes asserting control over politics and public affairs, but after the schism following the death of Pope Honorius II and almost a decade of chaos created by the conflict between Pope Innocent II and antipope Anacletus II, Rome wanted a change. It was actually the brother of Anacletus, Giordano Pierleoni, who promoted the creation of the Commune of Rome in 1143 to curtail the authority of the pope over Rome, no doubt out of revenge for Anacletus.
The first step was dividing Rome into 14 districts (many of these districts had existed for centuries; as Rome grew, new adjacent districts were identified). Four representatives would be elected from each district, creating a new Roman Senate of 56 members who were (ideally) independent of the pope and the noble families who had controlled much of Rome's fate since the end of the 6th century. Their first act was to elect a "first among equals," a patrician. (Classically, this would have been a consul, but that title had noble connotations.) Their choice? Giordano Pierleoni.
The first problem facing the Senate was Pope Lucius II. Elected on 9 March 1144, he was told by the Senate that he had to relinquish his temporal authority over Rome. Lucius asked for help from Bernard of Clairvaux and from several temporal lords, such as Roger of Sicily. When Lucius attacked Rome, his small army lost, and Lucius himself was wounded, dying on 15 February 1145.
The attack was partially blamed on Pierleoni's unsuccessful attempt at negotiating a peaceful accord with Lucius, and Pierleoni was deposed. The next pope, Eugene III, I have called the Homeless Pope. He left Rome to be consecrated at a particular abbey, and was blocked from re-entering Rome by those opposed to papal temporal power.
In 1190, Pope Clement III (not the antipope mentioned here) defused the conflict between Senate and Pope by agreeing that the citizens should elect magistrates while the pope would nominate the governor.
The popes were not the only reason why some felt the need to revive a senate. Noble families with lots of money and relatives in high places asserted disproportionate power. The most powerful of these was the Frangipani family, who involved themselves in many papal choices. We'll look at them next time.