 The most important magistrates were the two consuls, who together exercised executive authority as "imperium", or military command.The consuls had to work with the senate, which was initially an advisory council of the ranking nobility, or patricians, but grew in size and power.In the 4th century BCE the Republic came under attack by the Gauls, who initially prevailed and sacked Rome.