As Ash prepares for his final Sinnoh region Gym Battle with a little training, his Monferno accidentally discovers a treasure chest buried in the forest! While struggling to open it, our heroes are approached by Team Rocket-in disguise, as usual. James remembers that he was the one who buried the treasure chest long ago! James and the rest of Team Rocket attempt to retrieve the chest, but to no avail.
Meanwhile, James recalls that the chest contains a letter proposing marriage to his would-be fiancée, Jessiebelle. James knows if that letter ever falls into her hands, the results would be disastrous! And our heroes, who still have possession of the chest, are wandering by one of James's vacation mansions when Sebastian, the butler, spies them. Excited at the thought that "Young Master James" must be close by, Sebastian invites our heroes in, while Jessie, disguised as Jessiebelle (along with a disguised James and Meowth), shows up to get the treasure chest back.
But when Sebastian discovers James is really there, he takes it upon himself to alert the real Jessiebelle, who arrives on the scene-all set to marry James! James sadly gives in and says goodbye to Team Rocket and our heroes. But, secretly, he asks Ash to have Pikachu use Thunderbolt and blast them off, away from Jessiebelle! To James's dismay, Jessie and Jessiebelle accidentally get switched, leaving James on the run from his crazed fiancée...with Meowth running along with him! And, tired of the nuptial nightmare, our heroes once again turn toward their upcoming challenges.
The episode begins with Ash and Dawn having a battle while on their way to Daybreak Town for Dawn's next Pokémon Contest. When Ash's Monferno accidentally digs up a buried treasure chest, they all try to break it open, but it is too well made. Team Rocket sees them trying to break it open, and decide to steal the chest to get the treasure inside. They disguise themselves as the treasure chest gang, but they soon reveal themselves as Team Rocket, and Ash has Pikachu use Thunderbolt which sends them blasting off. When they land, James remembers that he used to own the treasure chest, and buried it when he was a child, but he can't remember what he hid inside it. The team decides to retrieve the item again, imaging it contains some of James's allowance.
Ash and his friends are continuing their journey when suddenly Team Rocket shows up once more, and they try to tell Ash that the chest belonged to James. Ash and friends assume it is a lie, but Brock says that if it did belong to James, then he would know how to open it. James tries to open the chest, but he can't remember how. He tries different passwords, and when he tries for the third time, the chests looks like it is opening, but it's really the security system. James tells them to run, but a cannon comes out of the lid and sends Team Rocket blasting off. When they land, James suddenly remembers what was inside the chest, but he won't tell Jessie or Meowth. He becomes determined to stop anyone finding out what was inside the chest.
Meanwhile, Ash and his friends are admiring a huge, impressive-looking mansion, when suddenly the gates open and a butler comes running out of the building to take the chest, which he says belongs to master James. He proves it is James's by showing the gang a picture on the bottom of the chest which James did of his Pokémon Growlie when he was a little boy. The butler gets very emotional at the thought of James returning, and starts to look for him in the bushes and trees. Ash and Brock tell Dawn that James came from a very rich family, and that the huge mansion was probably one of his family's summer estates.
James and the rest of Team Rocket are watching, and James is scared that if Sebastian (the butler) sees him, he will call his parents, and his fiancée, Jessebelle, whose controlling personality was the reason he ran away from home and joined Team Rocket. James comes up with a plan to retrieve the chest without being recognized by Sebastian.
Ash, Dawn and Brock are inside the mansion, and Dawn wonders why James joined Team Rocket at the first place. Brock says that maybe James was looking for his freedom. Sebastian offer a meal to Ash and his friends as a thank you for finding master James's treasure chest, and while the gang are tucking in, Sebastian asks them where they found the chest. Before they can answer, the doorbell rings. It is Jessie, disguised as Jessebelle, and Meowth and James disguised as her servants. Jessie says that she has just come to pick up the treasure chest for James, who had returned and was marrying her after all. Sebastian begins to cry with happiness, and Meowth orders Ash to fetch the chest. Everything is going well for James, but then suddenly his old Pokémon Growlie wanders out, and recognizes James even through his disguise. Growlie jumps onto James to say hello, and knocks the disguise off. Even though James is scared that has been found out, he is pleased to see his old Pokémon again. Sebastian is overjoyed to see James, but he quickly sends out a Spinarak which he tells to use String Shot on James so he can be handed over to his parents and marry Jessebelle. James sends out his Mime Jr. which uses Teeter Dance, which allows James to send Sebastian and Spinarak down a hidden trap door into a dungeon. James takes the chest from Ash, and when asked by Dawn and Jessie, he tells them what is inside the chest.
James tells them about how, when he was very little, he was tired of all the formal balls his parents hosted, and on the night of one of these parties he met Jessebelle on a balcony. He fell in love with her right away, even though he only knew her name. He didn't realize the meeting had been planned by his parents. That night he wrote a love letter to Jessebelle, asking her to marry him. He thought how embarrassing it would be if anyone other than her read the note, and just then his parents, who had been listening to him, handed him the treasure chest, which was handmade by his father. They also told him that he would be going to Jessebelle's house the next night, and he should tell her how he feels. The next night, before James got a chance to ask Jessebelle to marry him, she said yes, and that it has already been arranged by their parents. She demanded that he gets a Skitty to replace his Growlithe, but James refused to part with his best friend, and ran out of the house. He told Growlie use Dig, and buried the chest so no one will find it.
The flash-back ends, and James says that if Jessebelle was to find the letter, she would see it as a marriage certificate, and he would have to spend the rest of his life with her. Suddenly, the security systems go off; it is Jessebelle, and she is making her way to the mansion along with hundreds of guards. The guards surround the building, so James can't escape. James realizes Sebastian must have called her. James says that he has a secret passageway they can escape through. At the same time, Jessebelle enters the mansion, where she is greeted by Sebastian, who jumps up through the floor. He leads her to the secret passageway, where Ash, Dawn, Brock, Jessie, James and Meowth are all running from her. James tells everyone to hurry up, and Dawn says that she can't see what any of it has to do with them. James reminds them that none of it would have happened if Ash hadn't dug the chest up in the first place, so they should help him escape. They see Jessebelle and Sebastian running close behind them, and quickly get to the end of the tunnel, trapping Jessebelle and Sebastian inside. Ash and Brock tell James to run while he has the chance, but James says that he has to dispose of the letter first, and he unsuccessfully tries to guess the password again. This time the chest transforms into a huge and scary looking robot, but really it is only a foot tall. It shoots at Team Rocket, but Growlie uses Flamethrower and stops the laser. James gets Growlie to attack the chest, and once Growlie has used Flamethrower, Dig, then one last Flamethrower, the robot turns back into a chest, which then turns into a tiny rocket and flies away.
Inside the tunnel, Jessebelle gets her Vileplume to use Solar Beam, which breaks down the door. Jessebelle tells James that all the arrangements for the wedding have been made, and James says that he gives up, and just wants to say goodbye to his friends before he goes to get married, but James asks Ash to use Thunderbolt. Ash agrees, and Pikachu sends Team Rocket blasting off. James is happy to have escaped, but suddenly realizes that it is not Jessie who has blasted off with them, but rather Jessebelle. Jessie lands on her own, surrounded by Jessebelle's guards, who mistake her for Jessebelle.
The episode ends with Ash and his friends making their way to the next city, while the scene changes to James and Meowth being chased by Jessebelle.