paragraph_text: From childhood, Gaddafi was aware of the involvement of European colonialists in Libya; his nation was occupied by Italy, and during the North African Campaign of World War II it witnessed conflict between Italian and British troops. According to later claims, Gaddafi's paternal grandfather, Abdessalam Bouminyar, was killed by the Italian Army during the Italian invasion of 1911. At World War II's end in 1945, Libya was occupied by British and French forces. Although Britain and France intended on dividing the nation between their empires, the General Assembly of the United Nations (UN) declared that the country be granted political independence. In 1951, the UN created the United Kingdom of Libya, a federal state under the leadership of a pro-western monarch, Idris, who banned political parties and established an absolute monarchy.

paragraph_text: It is generally considered that the Pacific War began on 7/8 December 1941, on which date Japan invaded Thailand and attacked the British possessions of Malaya, Singapore, and Hong Kong as well as the United States military bases in Hawaii, Wake Island, Guam and the Philippines. Some historians contend that the conflict in Asia can be dated back to 7 July 1937 with the beginning of the Second Sino-Japanese War between the Empire of Japan and the Republic of China, or possibly 19 September 1931, beginning with the Japanese invasion of Manchuria. However, it is more widely accepted that the Pacific War itself started in early December 1941, with the Sino-Japanese War then becoming part of it as a theater of the greater World War II.[nb 9]

paragraph_text: The Prague Spring (Czech: Pražské jaro, Slovak: Pražská jar) was a period of political liberalization in Czechoslovakia during the era of its domination by the Soviet Union after World War II. It began on 5 January 1968, when reformist Alexander Dubček was elected First Secretary of the Communist Party of Czechoslovakia (KSČ), and continued until 21 August when the Soviet Union and other members of the Warsaw Pact invaded the country to halt the reforms.

paragraph_text: The Second Sino - Japanese War was a military conflict fought primarily between the Republic of China and the Empire of Japan from July 7, 1937 to September 9, 1945. It began with the Marco Polo Bridge Incident in 1937 in which a dispute between Japanese and Chinese troops escalated into a battle. The conflict then escalated further into a full - scale war. It ended with the unconditional surrender of Japan on September 2, 1945 to the Allies of World War II.

paragraph_text: Korea was ruled by Japan from 1910 until the closing days of World War II. In August 1945, the Soviet Union declared war on Japan and—by agreement with the United States—occupied Korea north of the 38th parallel. U.S. forces subsequently occupied the south and Japan surrendered. By 1948, two separate governments had been set up. Both governments claimed to be the legitimate government of Korea, and neither side accepted the border as permanent. The conflict escalated into open warfare when North Korean forces—supported by the Soviet Union and China—invaded South Korea on 25 June 1950. On that day, the United Nations Security Council recognized this North Korean act as invasion and called for an immediate ceasefire. On 27 June, the Security Council adopted S/RES/83: Complaint of aggression upon the Republic of Korea and decided the formation and dispatch of the UN Forces in Korea. Twenty-one countries of the United Nations eventually contributed to the defense of South Korea, with the United States providing 88% of the UN's military personnel.

paragraph_text: The end of World War II in Asia occurred on 14 and 15 August 1945, when armed forces of the Empire of Japan surrendered to the forces of the Allies. The surrender came over three months after the surrender of the Axis forces in Europe and brought an end to World War II.

paragraph_text: When World War II started in 1939, it divided the world into two alliances—the Allies (the United Kingdom and France at first in Europe, China in Asia since 1937, followed in 1941 by the Soviet Union, the United States); and the Axis powers consisting of Germany, Italy and Japan.[nb 1] During World War II, the United States, United Kingdom, and Soviet Union controlled Allied policy and emerged as the "Big Three". The Republic of China and the Big Three were referred as a "trusteeship of the powerful"  and were recognized as the Allied "Big Four" in Declaration by United Nations in 1942. These four countries were referred as the "Four Policemen" of the Allies and considered as the primary victors of World War II. The importance of France was acknowledged by their inclusion, along with the other four, in the group of countries allotted permanent seats in the United Nations Security Council.

paragraph_text: The Allied occupation of Japan at the end of World War II was led by General Douglas MacArthur, the Supreme Commander of the Allied Powers, with support from the British Commonwealth. Unlike in the occupation of Germany, the Soviet Union was allowed little to no influence over Japan. This foreign presence marks the only time in Japan's history that it has been occupied by a foreign power. The country became a parliamentary democracy that recalled ``New Deal ''priorities of the 1930s by Roosevelt. The occupation, codenamed Operation Blacklist, was ended by the San Francisco Peace Treaty, signed on September 8, 1951, and effective from April 28, 1952, after which Japan's sovereignty -- with the exception, until 1972, of the Ryukyu Islands -- was fully restored.

paragraph_text: In Oceania, France obtained a leading position as imperial power after making Tahiti and New Caledonia protectorates in 1842 and 1853 respectively. After navy visits to Easter Island in 1875 and 1887, Chilean navy officer Policarpo Toro negotiated the incorporation of the island into Chile with native Rapanui in 1888. By occupying Easter Island, Chile joined the imperial nations. By 1900 nearly all Pacific islands were in control of Britain, France, United States, Germany, Japan, and Chile.Although the United States gained control of Guam and the Philippines from Spain in 1898, Japan controlled most of the western Pacific by 1914 and occupied many other islands during World War II. However, by the end of that war, Japan was defeated and the U.S. Pacific Fleet was the virtual master of the ocean. Since the end of World War II, many former colonies in the Pacific have become independent states.

paragraph_text: At the 1936 Summer Olympics he finished ninth in the 10,000 m final in 31:40.4 minutes. He again finished ninth at the 1938 European Championships. He became Norwegian champion in both 5000 and 10,000 metres in the years 1937-1939, and in cross-country running in the years 1935-1939. He represented TIF Viking in Bergen. The Norwegian championships were not held from 1940-1945 due to World War II.

paragraph_text: At the end of the Balkan Wars, the extent of Greece's territory and population had increased. In the following years, the struggle between King Constantine I and charismatic Prime Minister Eleftherios Venizelos over the country's foreign policy on the eve of World War I dominated the country's political scene, and divided the country into two opposing groups. During parts of the First World War, Greece had two governments; a royalist pro-German government in Athens and a Venizelist pro-Britain one in Thessaloniki. The two governments were united in 1917, when Greece officially entered the war on the side of the Triple Entente.

paragraph_text: Katō Kiyomasa was one of the most powerful and well-known lords of the Sengoku Era. He commanded most of Japan's major clans during the invasion of Korea (1592–1598). In a handbook he addressed to "all samurai, regardless of rank" he told his followers that a warrior's only duty in life was to "...grasp the long and the short swords and to die". He also ordered his followers to put forth great effort in studying the military classics, especially those related to loyalty and filial piety. He is best known for his quote: "If a man does not investigate into the matter of Bushido daily, it will be difficult for him to die a brave and manly death. Thus it is essential to engrave this business of the warrior into one's mind well."

paragraph_text: Ludwig Bieringer (1892–1975) was a German general during World War II. A lifelong professional soldier, he served his country as a junior officer in World War I, a staff officer in the inter-war period and a brigade-level commander during World War II.

paragraph_text: The Battle of Bukit Timah (10–12 February 1942), was part of the final stage of the Empire of Japan's invasion of Singapore during World War II.

paragraph_text: The Korean War (in South Korean Hangul: 한국전쟁, Hanja: 韓國戰爭, Hanguk Jeonjaeng, "Korean War"; in North Korean Chosungul: 조국해방전쟁, Joguk Haebang Jeonjaeng, "Fatherland Liberation War"; 25 June 1950 – 27 July 1953)[a] was started when North Korea invaded South Korea. The United Nations, with United States as the principal force, came to aid of South Korea. China, along with assistance from Soviet Union, came to aid of North Korea. The war arose from the division of Korea at the end of World War II and from the global tensions of the Cold War that developed immediately afterwards.

paragraph_text: The Axis leaders of World War II were important political and military figures during World War II. The Axis was established with the signing of the Tripartite Pact in 1940 and pursued a strongly militarist and nationalist ideology; with a policy of anti-communism. During the early phase of the war, puppet governments were established in their occupied nations. When the war ended, many of them faced trial for war crimes. The chief leaders were Adolf Hitler of Germany, Benito Mussolini of Italy and Emperor Hirohito of Japan. Unlike what happened with the Allies, there was never a joint meeting of the main Axis heads of government, although Mussolini and Adolf Hitler did meet on a regular basis.

paragraph_text: The Soviet -- Japanese War (Russian: Советско - японская война; Japanese: ソ連対日参戦, ``Soviet Union entry into war against Japan '') was a military conflict within the Second World War beginning soon after midnight on August 9, 1945, with the Soviet invasion of the Japanese puppet state of Manchukuo. The Soviets and Mongolians terminated Japanese control of Manchukuo, Mengjiang (Inner Mongolia), northern Korea, Karafuto, and the Chishima Islands. The defeat of Japan's Kwantung Army helped in the Japanese surrender and the termination of World War II. The Soviet entry into the war was a significant factor in the Japanese government's decision to surrender unconditionally, as it made apparent the Soviet Union would no longer be willing to act as a third party in negotiating an end to hostilities on conditional terms.

paragraph_text: In 1937, the Empire of Japan started a full-scale invasion of China after invading Manchuria in 1931, beginning the Second Sino-Japanese War (often considered a theatre of World War II). Their troops occupied Nanjing in December and carried out the systematic and brutal Nanking Massacre (the "Rape of Nanking"). Even children, the elderly, and nuns are reported to have suffered at the hands of the Imperial Japanese Army. The total death toll, including estimates made by the International Military Tribunal for the Far East and the Nanjing War Crimes Tribunal, was between 300,000 and 350,000. The city itself was also severely damaged during the massacre. The Nanjing Massacre Memorial Hall was built in 1985 to commemorate this event.

paragraph_text: The removal of Hungary's border fence with Austria occurred in 1989 during the collapse of communism in Hungary, which was part of a broad wave of revolutions in various communist countries of Central and Eastern Europe. The dismantling of the electric fence along Hungary's 240 kilometres (149 mi) long border with Austria was the first fissure in the ``Iron Curtain ''that had divided Europe for more than 40 years, since the end of World War II, and caused a chain reaction in East Germany that ultimately resulted in the demise of the Berlin Wall.

paragraph_text: The division of Korea between North and South Korea occurred after World War II, ending the Empire of Japan's 35 - year rule over Korea in 1945. The United States and the Soviet Union each occupied a portion of the peninsula, with the boundary between their zones of control along the 38th parallel.

Question: When did Japan finish invading the country that was divided at the end of World War II?
Answer: 1598