was a feudal domain under the Tokugawa shogunate of Edo period Japan, located in Harima Province in what is now the southwestern portion of modern-day Hyà Âgo Prefecture. It was centered around the Anji jin'ya which was located in what is now the city of Himeji, Hyà Âgo and was controlled by a cadet branch fudai daimyà  Ogasawara clan throughout all of its history.
In 1716, the 5th daimyà  of Nakatsu Domain in Buzen Province, Ogasawara Nakasato died at the age of five. As he had no heir, this would normally be cause for attainder; however, in recognition of the death in combat of one his ancestors at the Siege of Osaka, the Tokugawa shogunate decided to appoint his uncle, Ogasawara Nagaoki as daimyà Â, but to reduce his kokudaka to 10,000 koku and to relocate his seat to Anji. Ogasawara Nagaoki was weak health and retired at the age of 19 without heir, but he adopted the son of Ogasawara Tadamoto of Kokura Domain, Ogasawara Nagamitsu, as his successor. Afterwards, the domain was regarded as if it was a subordinate domain of Kokura. Due to these strong ties, the domain fought in the Chà Âshà « expeditions against Chà Âshà « Domain, bu with the start of the Boshin War defected to the Imperial side. In 1871, with the abolition of the han system, the domain became Anji Prefecture, which was merged with Shikama Prefecture, which in turn became part of Hyà Âgo Prefecture.
The clan was ennobled with the kazoku peerage title of shishaku (viscount) in 1884.
As with most domains in the han system, Anji Domain consisted of several discontinuous territories calculated to provide the assigned kokudaka, based on periodic cadastral surveys and projected agricultural yields.