The Korean War began in 1950 when North Korea invaded South Korea, aiming to reunite the peninsula under communist rule. The United Nations authorized troops to defend South Korea against the invasion. Fighting escalated significantly when China joined the war on North Korea's side in late 1950. Over the next two years, fighting surged back and forth across the Korean Peninsula until an armistice was signed in 1953, dividing the peninsula along roughly the same border where fighting began.