While in the city of Rome, the consuls were the head of the Roman government.