The city of Rome was affected very much by warfare in Italy during the Early Middle Ages. Emperor Justinian I conquered the Italian kingdom of the Ostrogoths. He made Ravenna, Italy a territory with its own governor, but imperial influence was often limited. After the invasion of the Lombards, Rome had to take care of itself. Thus the popes, out of necessity, found themselves feeding the city with grain from papal estates, negotiating treaties, paying protection money to Lombard warlords, and, failing that, hiring soldiers to defend the city. Eventually, the failure of the Empire to send aid resulted in the popes turning for support from other sources, most especially the Franks.