Summon Duke Fishron by fishing in the Ocean with a Truffle Worm. Where to find the worm, how to build the arena, all three phases and every drop.
You summon Duke Fishron in Terraria by fishing in the Ocean with a Truffle Worm as bait. When the bobber dips, reel in the line and Duke Fishron jumps out of the water instead of a fish. The worm is always used up, and it works at any time of day.
Duke Fishron is an optional Hardmode boss. You can fight him as soon as the Wall of Flesh is dead, but he hits like a boss from after Golem, so most players wait until they have good wings and Hardmode gear.

Notable drops:
The Truffle Worm is a rare critter that only appears in Hardmode, in the underground Glowing Mushroom biome. You catch it with a Bug Net, a Lavaproof Bug Net or a Golden Bug Net, and after that it sits in your inventory like any other bait.

Catching it is the tricky part. The worm burrows away as soon as you get close, so walk up quickly and swing the net right away. It glows a little, which helps you spot it in the dark.
To make more of them spawn:
A Lifeform Analyzer shows the Truffle Worm on its info line, so you'll know when one is nearby.
Duke Fishron only comes out near the edge of the world, so fish in the Ocean on either side. Any fishing pole works and you don't need any fishing power. The Truffle Worm does nothing as normal bait, so if the bobber just sits there, you are in the wrong spot.
Note: You can also summon him from lava with any pole, without a Hotline Fishing Hook. It is rarely useful, but it works.
Fight him right over the Ocean. If you move too far inland or deep underground, Duke Fishron becomes enraged: he charges nonstop and his damage and defense double. Some players wall off the edge of the Ocean area so they can't drift out by accident.
Lay one long row of platforms over the water so you don't sink, and add a second row a few tiles higher. Water Walking Boots or a Water Walking Potion also keep you on top of the water.
Wings and a dash accessory matter more than armor here. The Shield of Cthulhu, Tabi or Master Ninja Gear let you dash through his charges, and the Shield of Cthulhu dash gives a short moment of invincibility in Expert Mode. For buffs, take Ironskin, Regeneration, Endurance, Lifeforce, Swiftness and your class potion. An Inferno Potion pops his bubbles before they reach you.
Duke Fishron has 60,000 health in Classic, 78,000 in Expert and 99,450 in Master, with 50 defense. He has two phases in Classic and a third one in Expert and Master.
Below 50% health he stops for a moment and changes color. His defense drops to 40, but he gets much faster and hits harder.

Below 15% health the screen fills with dark blue fog and he turns invisible except for his eyes. His defense falls to 0 and he only charges, teleporting to your side between dashes in a set pattern of one, two and three charges. In Expert and Master his hits can also cause Bleeding or Feral Bite. An Ankh Charm or Ankh Shield blocks the side effects of both.
His charges aim at where you are, not where you are going. Move up or down when he lines up with you sideways, and left or right when he is above or below you. A zigzag or triangle path makes most charges miss completely.
The Cthulunado spawns where the homing bolt hits you, so steer it to the edge of the arena and move away at once. Don't fly up into space to escape: the low gravity there makes you an easy target. A Shine Potion and Hunter Potion help you see him in the last phase, and Ichor on him makes him easier to spot.
Every kill gives one of seven weapons, each with a 14.29% chance:

He also drops 5 to 15 Greater Healing Potions, the Fishron Wings (6.67%, or 10% from the Treasure Bag), the Duke Fishron Mask (14.29%) and the Duke Fishron Trophy (10%). The Expert and Master Treasure Bag adds the Shrimpy Truffle, which summons the Cute Fishron mount, very fast in water. Master Mode adds the Duke Fishron Relic and a 25% chance at the Pork of the Sea pet.
Most players fight Duke Fishron after Golem, when the fight is fair. If you can beat him earlier, his weapons make the mechanical bosses and How To Summon Plantera much easier, and the Fishron Wings carry you to the end of the game.
A good order for the late game is Plantera, then How To Summon Golem, then Duke Fishron, before you move on to How To Summon Moon Lord.