Magister militum (master of soldiers) was a Roman and Byzantine title for a provincial or local military commander, who often had civil duties too.