Goku learns the Fusion Dance from the Metamorans—a race of aliens native to Planet Metamor—while training in the Other World (the afterlife) in preparation for the 25th World Martial Arts Tournament.
Goku teaches the dance to Goten and Trunks during the Buu Saga. Their fusion, Gotenks, becomes a pivotal fighter against Super Buu. Later, Goku and Vegeta fuse into Vegito (via Potara earrings, not the dance), and in Dragon Ball Super, Gogeta (dance fusion) returns in Broly.
The Metamorans' gift becomes one of the franchise's most iconic mechanics—born from a dead man's training on an alien world.