Viscount Niwa Nagakuni was a Japanese daimyo of the late Edo period who ruled Nihonmatsu han and is famous for his leadership of the domain during the Boshin War.
Nagakuni, known in his childhood as Hz was born in Nihonmatsu on May 22, 1834, the 6th son of Niwa Nagatomi. On November 15, 1858 he succeeded to the family headship upon his fathers retirement. He continued the joint coastal defense mission at Tomitsu begun by his father. In 1860, he sent forces for security duty in Kyoto. This, as well as a fire in his castle town, seriously drained his resources. These expenses were compounded by the economic difficulties the domain faced following the Tenpo famines, as well as bureaucratic corruption. As a result, Nihonmatsu was utterly economically paralyzed by the end of the Edo period. Despite this, it joined the Northern Confederation of Allied Domains in 1868, and fought against the forces of the Meiji Government. However, Nihonmatsu was defeated, and forced to give up 50,000 koku of its holdings. Also, as per the governments conditions, Nagakuni retired, and his adopted son Niwa Nagahiro succeeded him.
Source: Wikipedia