With Estonian independence after World War I, the city officially became known by the Estonian name "Tartu". At the end of Estonian War of Independence following World War I, a peace treaty between the Bolsheviks and Estonia was signed on 2 February 1920 in Tartu (Treaty of Tartu). The treaty meant that Soviet Russia renounced territorial claims to Estonia "for all time". However, as a result of the Nazi-Soviet Pact of 1939, the Soviet Union occupied Estonia and Tartu in 1940.