World War I: Germany declares war against France, while Romania declares its neutrality.

The Kingdom of Romania was neutral for the first two years of World War I, entering on the side of the Allied powers from 27 August 1916 until Central Power occupation led to the Treaty of Bucharest in May 1918, before reentering the war on 10 November 1918. It had the most significant oil fields in Europe, and Germany eagerly bought its petroleum, as well as food exports.

From the point of view of its belligerent status, Romania was a neutral country between 28 July 1914 and 27 August 1916, a belligerent country on the part of the Entente from 27 August 1916 to 9 December 1917, in a state of armistice with the Central Powers from 10 December 1917 to 7 May 1918, a non-combatant country between 7 May 1918 and 10 November 1918, and finally a belligerent country in the Entente between 10 and 11 November 1918.

At the start of World War I, King Carol I of Romania favored Germany, while the nation's political elite favored the Entente. As such, the crown council took the decision to remain neutral. But after King Carol's death in 1914, his successor King Ferdinand I favored the Entente. For Romania, the highest priority was taking Transylvania from Hungary, with around 2,800,000 Romanians out of around 5,000,000 people. The Allies wanted Romania to join their side in order to cut rail communications between Germany and Turkey, and to cut off Germany's oil supplies. Britain made loans, France sent a military training mission, and Russia promised modern munitions. The Allies promised at least 200,000 soldiers to defend Romania against Bulgaria to the south, and help it invade Austria-Hungary.

At the outbreak of hostilities, the Austro-Hungarian Empire invoked a casus foederis on Romania and Italy linked to the secret treaty of alliance since 1883. However, both Italy and Romania refused to honor the treaty on the grounds that it was not a case of casus foederis because the attacks on Austria were not "unprovoked", as stipulated in the treaty of alliance. In August 1916, Romania received an ultimatum to decide whether to join the Entente "now or never". Under the pressure of the ultimatum, the Romanian government agreed to enter the war on the side of the Entente, although the situation on the battle fronts was not favorable.

The Romanian campaign was part of the Eastern Front of World War I, with Romania and Russia allied with Britain and France against the Central Powers of Germany, Austria-Hungary, the Ottoman Empire, and Bulgaria. Fighting took place from August 1916 to December 1917 across most of present-day Romania, including Transylvania, which was part of the Austro-Hungarian Empire at the time, as well as in Southern Dobruja, which is currently part of Bulgaria.

The Romanian campaign plan (Hypothesis Z) consisted in attacking Austria-Hungary in Transylvania, while defending Southern Dobruja and Giurgiu from Bulgaria in the south. Despite initial successes in Transylvania, after German divisions started aiding Austria-Hungary and Bulgaria, the Romanian forces (aided by Russia) suffered massive setbacks, and by the end of 1916 out of the territory of the Romanian Old Kingdom only Western Moldavia remained under the control of the Romanian and Russian armies.

After several defensive victories in 1917 at Mrti, Mreti, and Oituz, with Russia's withdrawal from the war following the October Revolution, Romania, almost completely surrounded by the Central Powers, was also forced to drop out of the war. It signed the Treaty of Bucharest with the Central Powers in May 1918. Under the terms of the treaty, Romania would lose all of Dobruja to Bulgaria, all the Carpathian passes to Austria-Hungary and would lease all of its oil reserves to Germany for 99 years. However, the Central Powers recognized Romania's union with Bessarabia who had recently declared independence from the Russian Empire following the October Revolution and voted for union with Romania in April 1918. The parliament signed the treaty, however King Ferdinand refused to sign it, hoping for an Allied victory on the western front. In October 1918, Romania renounced the Treaty of Bucharest and on 10 November 1918, one day before the German armistice, Romania re-entered the war after the successful Allied advances on the Macedonian front and advanced in Transylvania. The next day, the Treaty of Bucharest was nullified by the terms of the Armistice of Compigne.

World War I, often abbreviated as WWI or WW1, also known as the First World War and contemporaneously known as the Great War and by other names, was an international conflict that began on 28 July 1914 and ended on 11 November 1918. It involved much of Europe, as well as Russia, the United States and Turkey, and was also fought in the Middle East, Africa and parts of Asia. One of the deadliest conflicts in history, an estimated 9 million were killed in combat, while over 5 million civilians died from occupation, bombardment, hunger or disease. The genocides perpetrated by the Ottomans and the 1918 Spanish flu pandemic spread by the movement of combatants during the war caused many millions of additional deaths worldwide.In 1914, the Great Powers were divided into two opposing alliances: the Triple Entente, consisting of France, Russia, and Britain, and the Triple Alliance, made up of Germany, Austria-Hungary, and Italy. Tensions in the Balkans came to a head on 28 June 1914 following the assassination of Archduke Franz Ferdinand, the Austro-Hungarian heir, by Gavrilo Princip, a Bosnian Serb. Austria-Hungary blamed Serbia and the interlocking alliances involved the Powers in a series of diplomatic exchanges known as the July Crisis. On 28 July, Austria-Hungary declared war on Serbia; Russia came to Serbia's defence and by 4 August, the conflict had expanded to include Germany, France and Britain, along with their respective colonial empires. In November, the Ottoman Empire, Germany and Austria formed the Central Powers, while in April 1915, Italy joined Britain, France, Russia and Serbia as the Allied Powers.

Facing a war on two fronts, German strategy in 1914 was to defeat France, then shift its forces to the East and knock out Russia, commonly known as the Schlieffen Plan. This failed when their advance into France was halted at the Marne; by the end of 1914, the two sides faced each other along the Western Front, a continuous series of trench lines stretching from the Channel to Switzerland that changed little until 1917. By contrast, the Eastern Front was far more fluid, with Austria-Hungary and Russia gaining, then losing large swathes of territory. Other significant theatres included the Middle East, the Alpine Front and the Balkans, bringing Bulgaria, Romania and Greece into the war.

Shortages caused by the Allied naval blockade led Germany to initiate unrestricted submarine warfare in early 1917, bringing the previously neutral United States into the war on 6 April 1917. In Russia, the Bolsheviks seized power in the 1917 October Revolution and made peace in the March 1918 Treaty of Brest-Litovsk, freeing up large numbers of German troops. By transferring these to the Western Front, the German General Staff hoped to win a decisive victory before American reinforcements could impact the war, and launched the March 1918 German spring offensive. Despite initial success, it was soon halted by heavy casualties and ferocious defence; in August, the Allies launched the Hundred Days Offensive and although the German army continued to fight hard, it could no longer halt their advance.Towards the end of 1918, the Central Powers began to collapse; Bulgaria signed an Armistice on 29 September, followed by the Ottomans on 31 October, then Austria-Hungary on 3 November. Isolated, facing revolution at home and an army on the verge of mutiny, Kaiser Wilhelm abdicated on 9 November and the new German government signed the Armistice of 11 November 1918, bringing the fighting to a close. The 1919 Paris Peace Conference imposed various settlements on the defeated powers, the best known being the Treaty of Versailles. The dissolution of the Russian, German, Ottoman and Austro-Hungarian empires led to numerous uprisings and the creation of independent states, including Poland, Czechoslovakia and Yugoslavia. For reasons that are still debated, failure to manage the instability that resulted from this upheaval during the interwar period ended with the outbreak of World War II in 1939.