Mai is initially recruited by her childhood friend Azula to hunt down and capture Prince Zuko, Iroh, and later Avatar Aang and his friends. However, Mai's loyalty to Zuko leads her to betray Azula. This act of defiance, coupled with Ty Lee's defense of Mai, results in their imprisonment, significantly impacting Azula's leadership and leading to the breakdown of her psyche.