The curse was placed on the ship and its crew by Aztec gold, which was stolen by Captain Barbossa (played by Geoffrey Rush) and his crew. The curse turns the pirates into undead skeletons, and they can only be human again if the gold is returned.