There were gozoku (local ruling families) that were specialized in military affairs in the Kofun (tumulus) and Asuka periods, which were before the establishment of the Japanese nation under the ritsuryo codes.
律令国家が建設される以前の古墳時代・飛鳥時代においても、軍事を主務とする豪族が存在した。