 In the absence of the consuls, a praetor would be given command of the garrison in Rome or in Italy.Also, a praetor could exercise the functions of the consuls throughout Rome, but their main function was that of a judge.They would preside over trials involving criminal acts, grant court orders and validate "illegal" acts as acts of administering justice.