 On 5 April 1918 the German army took control of the city.And according to the February 1918 Treaty of Brest-Litovsk between the Ukrainian People's Republic and the Central Powers it became part of the Ukrainian People's Republic.The city experienced occupation by German and Austrian-Hungarian armies that were allies of Ukrainian Hetman Pavlo Skoropadskyi and helped him to keep authority in the country.