In 1918, Czechoslovak troops began occupying northern Hungary in accordance with the territorial promises that the Triple Entente made to Czechoslovak politicians during World War I. However, Upper Hungary (today mostly Slovakia) was occupied by Hungarian troops from the Hungarian Soviet Republic, who helped create the Slovak Soviet Republic.