The Earth Blade is a strong and swift sword, capable of defeating almost any enemy with ease, but is rather difficult to obtain. Follow this guide to find out how to create it.
Steps
Part 1 of 4: Night's Edge

Step 1. Before you can even think about the Earth Blade, you need to get the Night's Edge sword
It is the strongest sword available before Hardmode, the most difficult mode in the game.

Step 2. Visit the Crimson Biome
Dig as much crimtan ore as possible. Alternatively, you can defeat the Eye of Cthulhu in a world with the crimson biome. You need 15 crimtan bars, corresponding to 45 crimtan ore, to build the Bloody Butcher, the first ingredient in Night's Edge. If there is corruption in your world and not the Crimson Biome, you can replace the Bloody Butcher with the Bane of Light.

Step 3. Visit the dungeon
First, you need to beat Skellington. Then, open the golden chests until you find the Muramasa.

Step 4. Visit the underworld
Dig the Hellstone Ore (you will need 60 units, plus 20 obsidian units). To craft the Hellstone Bars, you need a Hellstone Forge, which you can find in the brick constructions found in the Underworld. Craft 20 Hellstone Bars and build the Greatsword of Fire.

Step 5. Visit Corruption
You need 45 demonic ore to craft 15 demonic bars. With the bars, you can build the Bane of Light.

Step 6. Find the underground jungle
Once you reach that biome, kill the Hornets until you get 15 claws, then search for 12 jungle spores. Combine these items to create the Grass Sword.

Step 7. Join all the mentioned swords to a crimson or demon altar
You will get the Night's Edge, the first ingredient of the Earth Blade.
Part 2 of 4: Excalibur

Step 1. Defeat the Wall of Flesh and enter the Hardmode
On the internet you can find many guides on how to beat this very powerful boss.

Step 2. Dig the orichalcum or mitrilius and make an orichalcus or mitrilius anvil
Put it inside your base.

Step 3. Defeat one of the mechanical bosses to get the consecrated bars
-
There are three mechanical bosses: the Destroyer, the Twins, and Primary Skellington. On the internet you can find many guides on how to beat these fearsome bosses.
Get the Terra Blade in Terraria Step 10
Part 3 of 4: True Edge of the Night and True Excalibur

Step 1. Defeat Gemini and wait for a solar eclipse
Every day, there is a one in 20 chance of this event occurring.

Step 2. During the eclipse, wear turtle armor, drink a battle potion or stand near a water candle
You can also follow all the advice together.

Step 3. Kill Mothron
This monster can drop the Hero's Broken Sword as loot. You need three to get the Earth Blade.

Step 4. Combine (to an Orichalcus or Mitrilius anvil) the Hero's Broken Sword with the Night's Edge to get the True Night's Edge
Then combine Excalibur and the Hero's Broken Sword to get the True Excalibur.
Part 4 of 4: Earth Blade

Step 1. If necessary, wait for more solar eclipses
Keep slaughtering Swamp Thing and Frankenstein.

Step 2. Combine True Excalibur, True Night's Edge, and a Hero's Broken Sword with an Orichalcus or Mitrilius anvil
Congratulations, you now have one of the strongest swords in the game!