You have to be open, honest, and willing to listen to the other person while laying your own ego aside. This is something that many people really struggle with. It becomes a power game and trying to prove who's right instead of trying to genuinely solve problems with each other.
I don't get it.
Source: married at 21 and decades later, we're very, very, very different people than we were, but still very happy together.
There's a certain kind of Hollywood story where the person goes to the ends of the world to 'discover themselves' and comes back with a whole new life. Such as Eat, Pray, Love. I loathe this story arc with the fire of a thousand suns because if serial divorces teach us anything it's that wherever you go, there you are.
If you're not going into a second marriage with a narrative of, "I think I know what I fucked up last time and I won't do that again," then you're going to end up blaming your new spouse for all of your bullshit that you tried to blame on the first one.