They see their former spouse as the total problem in their life and are convinced that getting rid of that problem through divorce will bring ultimate resolution.
This is a vast, truly epic endeavor, one that both brings the current MCU to a near - climax (wait for the so - far - untitled follow - up, due May 2019, for the ultimateresolution), and sets the future in motion.