The Tani clan was originally from Mino Province and were early retainers of Oda Nobunaga. Tani Moritomo participated in all of the campaigns of Toyotomi Hideyoshi and was rewarded with a 16,000 koku domain in Tanba Province in 1582. During the Battle of Sekigahara, he served in the Western Army, and was ordered by Ishida Mitsunari to attack Tanabe Castle, whose lord, Hosokawa Fujitaka was a personal friend. Tani made a great show of attacking the castle, but famously, all of his soldiers and cannons were firing blank rounds at the castle. For this reason, he received no punishment from the victorious Tokugawa Ieyasu and was confirmed as daimyō of his existing holdings under the Tokugawa shogunate. He went on to serve the Tokugawa at the Siege of Osaka. The clan would continue to rule Yamaga for 13 generations until the Meiji restoration. However, Tani Moritomo's son, Tani Morimasa, distributed 6000 koku of his holdings to his younger brother and two cousins, reducing the domain to the bare minimum requirement to maintain its status. Since the domain was located in a mountainous area with little land suitable for rice cultivation, the domain's finances were supported by forestry and production of washi paper. During the Bakumatsu period, the domain was one of the first to support the new Meiji government. In 1871, with the abolition of the han system, Yamaga briefly became "Yamaga Prefecture", which was merged with Kyoto Prefecture a few months later. The final daimyō, Tani Morishige, became a viscount (shishaku) in the kazoku peerage in 1884.
Holdings at the end of the Edo period
As with most domains in the han system, Yamaga Domain consisted of several discontinuous territories calculated to provide the assigned kokudaka, based on periodic cadastral surveys and projected agricultural yields.[4][5]