The Mourning Wood is the first Pumpkin Moon boss and arrives in wave 6. How to craft the Pumpkin Moon Medallion, reach wave 6, dodge its fire and what it drops.
The Mourning Wood is the first mini-boss of the Pumpkin Moon in Terraria. You summon it by using a Pumpkin Moon Medallion at night and reaching wave 6 of the event. From then on it keeps coming back in most of the later waves, up to two at a time.
It is a post-Plantera fight. The medallion needs Ectoplasm, which only drops in the Dungeon once Plantera is dead, so this is one of the first things to do after that boss.

Notable drops:
The Mourning Wood only appears during the Pumpkin Moon, and the Pumpkin Moon Medallion starts it. Craft it at a Mythril Anvil or Orichalcum Anvil with:

Pumpkin Seeds are sold by the Dryad for 2 Silver 50 Copper. Plant them on surface grass with 2 by 2 tiles of free space and harvest them with any weapon or tool. Ectoplasm drops from Dungeon Spirits, which rise from enemies killed in the Dungeon after Plantera. Hallowed Bars come from the mechanical bosses.
Use the medallion at night. During the day nothing happens and the item is not used up. The event always ends at 4:30 AM, so start it right after dusk at 7:30 PM to get the full night.
The Pumpkin Moon has 20 waves. Each kill gives points, and the next wave starts once you reach the wave's score. These are the points you need in Classic to reach each of the first waves:
Scarecrows give 1 point, Splinterlings 2, Hellhounds 5, Poltergeists 10 and Headless Horsemen 50. Points are doubled in Expert and multiplied by 2.5 in Master. Kill everything as soon as it spawns, because new enemies only come in when there is room. Once you have 100 points in wave 5, wave 6 begins and the first Mourning Wood arrives.
Note: The Mourning Wood gives 75 points per kill in Classic, which makes it one of the fastest ways to push through the middle waves.
The Mourning Wood has 14,000 health in Classic, 18,200 in Expert and 23,205 in Master, with 34 defense. If it spawns inside blocks, it floats through them toward you until it reaches open ground. After that it walks, can't jump and gets faster the lower its health is.
It only attacks after it stops walking, so watch for that moment and get out of the line of fire. Don't hide in a small room, because the Flaming Wood goes right through the walls.
Greek Fire can't pass through water. Fighting with the Mourning Wood at least half underwater, for example over a shallow pool in your arena, takes away its most dangerous attack. A long flat arena with platforms above it also helps, since you can stay out of reach of the fire on the ground.
The North Pole is very strong here if you have one. Aim it above the Mourning Wood so the falling snowflakes hit it many times. In later waves two Mourning Woods can be alive at once, and their fire adds up quickly, so keep killing them as they come instead of letting them pile up.
The Mourning Wood always drops Spooky Wood, 15 to 30 in Classic and up to 50 in Master. The full Spooky armor set needs 750, so expect to fight a lot of them. It may also drop one of these items, and the chance grows with every wave:

In Classic each item starts at 2.86% and rises to 20%, and one of them always drops in wave 20. In Expert and Master one of them always drops from wave 12 on. The Mourning Wood Trophy can drop from wave 15. Expert adds a chance at the Witch's Broom, a mount that flies and hovers without a time limit, and Master adds the Mourning Wood Relic and the Hexxed Branch pet.
From wave 10 the Pumpking joins the fight, the main boss of the event: see How To Summon The Pumpking. The Frost Moon is the harder winter version of this event with its own mini-bosses, starting with How To Summon The Everscream. If you still need the boss that opens all of this, see How To Summon Plantera.