Their administrations were divided into executive, judicial, and military functions.