In ancient China, a brutal and tyrannical warlord unites the country's kingdoms into an empire and becomes the Dragon Emperor. He orders the construction of the Great Wall of China to bury and curse his dead enemies, eventually learning power over the classical elements fire, water, earth, wood and metal. The Emperor soon grows fearful that his death will end all he has accomplished and summons Zi Yuan, a sorceress who is said to know the secret of immortality. She seemingly casts a spell on the Emperor in Sanskrit, before he executes General Ming, his trusted friend and Zi Yuan's secret lover. But foreseeing such events, Zi Yuan immolates and detains the Emperor, transforming his army into the Terracotta Army, and flees.In 1946, Alex O'Connell, Rick and Evelyn O'Connell's son, and his archaeology professor Roger Wilson locates the Emperor's tomb. Though attacked by a mysterious woman, they succeed in bringing the coffin to Shanghai. Meanwhile, the British government entrusts the O'Connells to take the Eye of Shangri-La back to China. However, they learn that Wilson works for a rogue military faction led by General Yang, who had provided the financial backing of Alex's expedition. Yang plans to resurrect the Emperor using the Eye, which contains the Elixer of Life. They open it but accidentally lands on the carriage driver statue, actually revealed to be the Emperor's mummified body. He accepts Yang's service but kills Wilson and escapes.Along with Evelyn's brother Jonathan Carnahan, the O'Connells and the mysterious woman, Lin, travel to a stupa in the Himalayas that will reveal the path to Shangri-La when the Eye is placed on top of it. With the help of Yetis summoned by Lin, the group hold off Yang's soldiers but the Emperor discovers Shangri-La's location. Alex attempts to trigger an avalanche. The Emperor throws a dagger at him, but Rick shoves Alex and is stabbed instead. Lin takes the group to Shangri-La, where Zi Yuan still lives and heals Rick's wound. The group discovers that Lin is Zi Yuan's daughter, both rendered immortal due to the power of Shangri-La's waters. As Rick heals, Alex and Lin have grown attached to each other, but Lin refuses due to her immortality; unable to bear falling in love with Alex only to watch him grow old and die, just as Zi Yuan mourned for General Ming.The Emperor and General Yang eventually arrive and attack them in Shangri-La, and the Emperor bathes in the mystical waters, which restores his human form and youth, and gives him the ability to shapeshift. Transforming into a dragon, the Emperor kidnaps Lin and flies back to the tomb, raising his Terracota Army, planning to cross the Great Wall, where they will be invincible. The O'Connells and Zi Yuan pursue the Emperor to the Great Wall where she sacrifices her and Lin's immortality to create an undead army from beneath The Great Wall, led by a revived General Ming. As Alex rescues Lin, Zi Yuan fights the Emperor and is mortally wounded, but secures the dagger. Zi Yuan gives the dagger to the group before dying. Meanwhile, the Emperor goes into the Great Wall to use his elemental powers to negate the undead spell. Rick and Alex fight off the Emperor while Evelyn and Lin fight and kill Yang. The Emperor gains the upper hand over Rick, but Rick and Alex manage to stab the Emperor with the dagger, killing him and defeating the Terracotta Army. Ming's army briefly celebrates before finally moving on to a peaceful afterlife.The O'Connells return to Shanghai while Jonathan decides to move to Peru with the Eye of Shangri-La, as he wants to go somewhere with no mummies. However, in postscript, it is revealed that upon his arrival, mummies were discovered in Peru.
Output: Question: who gives the dagger to the group before dying?, Answer: Zi Yuan