The Yamagunitai (the Yamaguni Corps or Troop) was an armed force of farmers that was formed during the Bakumatsu period (a fifteen-year period, from 1853-1868, that saw the demise of the Tokugawa bakufu) in the hamlet of Yamaguni in Kuwata county of Tanba Province (the modern-day Keihoku-cho, Ukyo Ward, Kyoto).
山国隊（やまぐにたい）は、幕末期に丹波国桑田郡山国郷（現京都市右京区京北町）で結成された農兵隊。