This presentation explores the challenges and solutions for enterprises looking to migrate and modernize their legacy mainframe systems. The focus is on leveraging agentic AI-powered refactoring to derisk the mainframe exit process, as demonstrated through case studies with BMW and Fiserv.