How was Korea unified?

It wasn't . There is still North Korea and South Korea .South Korea is thriving, while North Korea has many people doing without bare necessities. The US still maintains a significant military prescence in South Korea to protect them .