Cai Yan, a pirate leader, loses his memory and finds refuge in a Shaolin Temple. There, he discovers the monks are in danger and vows to safeguard them.