With the decline of the Roman Empire, the city declined in importance and fell into ruin. Pope Gregory I created major reforms for the people. The city was ruled by the pope, and soon also became the capital of a state, the Papal States, which remained active until the nineteenth century. Popes, like the emperors, became richer over the centuries and the same happened with the counties ruled by them.