Kuki Moritaka, the son of the Sengoku period admiral, Kuki Yoshitaka had been awarded the 35,000 kokuToba Domain. On his death in 1632, a succession dispute arose. Yoshitaka had appointed his 5th son, Kuki Hisataka as his heir, but his third son, Kuki Takasue, argued that he had the stronger clam due to primogenitor and asked for the Tokugawa shogunate for arbitration. The shogunate ruled in favor of Hisataka, but also assigned a kokudaka of 20,000 koku to Moritaka to form a new domain. This was the start of Ayabe Domain. In 1661, Takasue assigned 500 koku of this estate to his younger brother Takashige. The Kuki clan continued to rule Ayabe until the Meiji restoration.
However, during the tenure of the second daimyō, a great flood and a storm caused 3729 deaths, and the domain's finances began to decline. Repeated floods and famines occurred, and despite attempts to reform the financial system, peasant revolts frequently occurred. A han school, the "Shintokukan", was established during the tenure of Kuki Takanao. The eighth daimyō, Kuki Takahiro, brought in outside advisors (including Satō Nobuhiro) to reform agricultural and military policies. A clan monopoly system on cotton from 1847 helped restore the domain's finances. The final daimyō, Kuki Takatomo had served Emperor Kōmei as a guard during the Kinmon incident and at the start of the Boshin War was one of the first supporters of the Meiji government. Following the Meiji restoration he was made viscount (shishaku) in the kazoku peerage. In 1871, with the abolition of the han system, Ayabe Domain became "Ayabe Prefecture" and subsequently became part of Kyoto Prefecture. The site of the Ayabe jin'ya is now the Kyoto Prefectural Ayabe Senior High School.
Holdings at the end of the Edo period
Most domains in the han system, which consisted of several discontinuous territories calculated to provide the assigned kokudaka, based on periodic cadastral surveys and projected agricultural yields.[4][5]