After the end of the First World War and the Hungarian–Romanian War, the Treaty of Trianon was signed and Hungary lost Transylvania to Romania, as well as other territories to other neighboring countries.