The film is set in Flower Capital, a land ruled by an evil queen (Qu Ying), who started hating men after her lover, High Priest Wei Liao (Daniel Wu), betrayed her. All men in the kingdom are slaves to women. However, a prophecy foretells that one day, the Star of Rex will find and wield a mythic sword, rise to power, overthrow the queen, and restore the balance of the two sexes. At the start of the movie, Crouching Tiger Hidden Dragon (Donnie Yen), a master swordsman who has made it his quest to overthrow the queen's regime, has commissioned Peachy (Edison Chen) to steal for him a certain engraved stone from the queen's palace. Peachy is successful, but the queen's soldiers and spies pursue him. Before the stone can be recaptured, it comes into the possession of Peachy's two friends Charcoal Head (Jaycee Chan) and Blockhead (Bolin Chen), who like Peachy earn a humble living by street-performing in a troupe led by their adoptive father, Blackwood. The brothers set out to deliver the stone to Crouching Tiger Hidden Dragon, along the way discovering the stone is actually a map, which they assume will lead them to riches. Before they can meet Crouching Tiger Hidden Dragon, they are intercepted by two lovely, but lethal, female warriors, Spring (Charlene Choi) and Blue Bird (Gillian Chung), each of whom is pursuing the pair for different reasons. The four agree to follow the map together, eventually learning that the map leads to the mythic sword and that either Charcoal Head or Blockhead is the Star of Rex. The journey takes them through dangerous terrain, culminating in an encounter with the Lord of Armour (Jackie Chan) who guards the way to the sword. Even as the four make their way toward the sword, the queen is preparing for their destruction, using her army and her powerful magic. A final battle will decide the fate of the land.