The Straw Hat Pirates split up in episode 405 of the One Piece anime and in chapter 513 of the One Piece manga. In episode 405 of the anime titled “Disappearing Crew - The Final Day of the Straw Hat Crew”, the Straw Hats were defeated by Warlord Kuma, who used his devil fruit powers to send them flying, forcing the crew to split up. The Straw Hats get back together in episode 517 of the One Piece anime with the title, A New Chapter Begins - The Straw Hat Crew Reunites! .
During their two-year separation, each member of the crew embarks on an individual journey to become stronger and more skilled, adhering to Luffy’s decision to regroup after this period of self-improvement. The Straw Hats undergo rigorous training, honing their abilities, and expanding their horizons in preparation for the challenges of the New World. They reunite after two years in episode 517 of the One Piece anime, titled “A New Chapter Begins – The Straw Hat Crew Reunites!” .