Lviv functioned as the Republic's capital from November 1 until the loss of that city to Polish forces on November 21, followed by Ternopil until late December 1918 and then by Stanislaviv (present-day Ivano-Frankivsk) until May 26, 1919.