The Korean War ended because of an armistice in 1953. After a long, 3 year war, the North and South were basically at a standstill, so the armistice was signed.
Side Note: Technically, the war is still going on today because there is no peace agreement.