The Shogun was the supreme military leader and de facto ruler, overseeing military and political affairs.