When cohorts (in ancient Japan) were formed under the ritsuryo codes, these cohorts took charge of military affairs instead of the Mononobe and the Otomo clans.
律令に基づいて各地に軍団(古代日本)が設置されると、物部・大伴両氏に代わって軍団が軍事を担うこととなった。