WWI was, to vastly oversimplify it, a squabble between the 6 most powerful European empires at the time (Britain, France, Germany, Austria-Hungary, Russia, and the Ottomans) over what the balance of power should be in Europe and, by extension, the rest of the world. There were various points of tension such as:
In 1917 a Serbian nationalist assassinated the heir to the Austro-Hungarian throne while he was visiting Bosnia, which led Austria-Hungary to demand Serbian submission which they refused, so Austria-Hungary invaded. Russia came to their defence, Germany joined Austria-Hungary in the war against Russia, while Italy stayed out of it because the Triple Alliance was technically a defensive pact and they viewed this as a war Austria-Hungary had started.
France started mobilising to join Russia, so Germany declared war on them too to try and get the jump on them. Rather than invade directly through the heavily defended border, Germany invaded through Belgium and Luxembourg trying to seize Paris and force a quick French surrender. Britain had so far held off on joining either side of the war and might have continued to stay out of it; remember, the Entente Cordiale wasn't technically a military alliance. However, Britain had guaranteed Belgium's independence from France or Germany since the 1830s so, when Germany invade Belgium, Britain declared war on Germany.
The Germans failed to quickly take Paris, being halted by the British and the French at the First Battle of the Marne. Both sides dug in and tried to outflank each other, starting the "race to the sea" and the trench warfare the war is most famous for. The Ottomans joined the war on the side of Germany and Austria-Hungary, the Central Powers, and fighting continued for 4 years.
The War ended in the Armistice on 11th November 1918, with the abdication of Kaiser Wilhelm II and the loss of much German territory and influence through the Treaty of Versailles. This Treaty was seen as incredibly harsh and unfair by the German people; France wanted to basically crush any hopes of Germany ever again becoming a superpower; and this fueled the rise of Hitler's brand of German Fascism that fueled WWII.
It's considered the first "World War" because of the involvement of people from around the world who got dragged into what was essentially a European power struggle between their colonial overlords. It wasn't by any means their war, there was no ideological stake in joining like there was in WWII, but they fought and died in it anyway.