The Imperial Japanese Army (IJA) was the principal ground force of the Empire of Japan. Forming one of the military branches of the Imperial Japanese Armed Forces (IJAF), it was controlled by the Imperial Japanese Army General Staff Office and the Army Ministry, both of which were nominally subordinate to the Emperor of Japan, the supreme commander of IJAF. During the 20th century, an Inspectorate General of Aviation became the third agency with oversight of the IJA. At its height, the IJA was one of the most influential factions in the politics of Japan and was one of the most powerful armies in the world. The IJA was also notorious for committing numerous war crimes during the Second Sino-Japanese War and the Pacific War, such as the Nanjing Massacre and the Bataan Death March. In the mid-19th century, Japan had no unified national army and the country was made up of feudal domains (han) with the Tokugawa shogunate (bakufu) in overall control, which had ruled Japan since 1603. The bakufu army, although a large force, was only one among others, and bakufu efforts to control the nation depended upon the cooperation of its vassals' armies. The opening of the country after two centuries of seclusion subsequently led to the Meiji Restoration and the Boshin War in 1868. The domains of Satsuma and Chōshū came to dominate the coalition against the shogunate. Boshin War On 27 January 1868, tensions between the shogunate and imperial sides came to a head when Tokugawa Yoshinobu marched on Kyoto, accompanied by a 15,000-strong force, some of which had been trained by French military advisers. They were opposed by 5,000 troops from the Satsuma, Chōshū, and Tosa domains. At the two road junctions of Toba and Fushimi just south of Kyoto, the two forces clashed. On the second day, an Imperial banner was given to the defending troops and a member of the Imperial Family, the Prince Ninnaji, was named nominal commander in chief, in effect making the pro-imperial forces officially an Imperial army.