Question: What year were the Japanese defeated?
About the article "World War II", section "Pacific (1942–43)".

Candidate passages:
In 1937 the Chinese government picked up intelligence that the Japanese planned a puppet Hui Muslim country around Suiyuan and Ningxia, and had sent agents to the region.
The Japanese planned to invade Ningxia from Suiyuan in 1939 and create a Hui Muslim puppet state.
The next year in 1940, the Japanese were defeated militarily by the Kuomintang Muslim General Ma Hongbin, who caused the plan to collapse.
Ma Hongbin's Hui Muslim troops launched further attacks against Japan in the Battle of West Suiyuan.
Muslim Generals Ma Hongkui and Ma Hongbin defended west Suiyuan, especially in Wuyuan in 1940 against the Japanese.
Ma Hongbin commanded the 81st corps and had heavy casualties, but eventually repulsed the Japanese and defeated them. 
The (720–721) was a rebellion of the Hayato people of southern Kyushu against the state of Japan.
After a year and a half of fighting, the Hayato were defeated, and the Japanese court established its rule over southern Kyushu. 
In 1942, the Japanese troops invaded Northern Lanao and established their own garrison.
In 1945, following a three year occupation by Japanese forces, troops from the 6th, 10th, 101st, 102nd and 108th Infantry Division of the Philippine Commonwealth Army, 10th Infantry Regiment of the Philippine Constabulary and Maranao guerrillas attacked the Japanese garrison in the Battle of Lanao.
The guerrillas attacked using traditional Maranao "Bangkau" Sebat,Salibat,Gunong, kampilan, barong and kris swords.
Eventually, the Japanese were defeated, however Dansalan was not renamed to Marawi City until June 16, 1956. 
After the United States–Korea Treaty of 1882 was negotiated, diplomatic representatives were sent from Washington to Seoul.
From then until 1905, there were several Envoys and Consuls General, each heading what was called a legation.
After the Japanese had defeated the Chinese in 1895, and the Russians in 1905, Korea began to see its independence disappear.
By 1910, Japan had annexed Korea and the U.S. no longer had a diplomatic presence in Korea. 
The Russo-Japanese War (8 February 1904 – 5 September 1905) was "the first great war of the 20th century."
It grew out of rival imperial ambitions of the Russian Empire and the Empire of Japan over Manchuria and Korea.
The major theatres of operations were Southern Manchuria, specifically the area around the Liaodong Peninsula and Mukden; and the seas around Korea, Japan, and the Yellow Sea.
Russia sought a warm water port on the Pacific Ocean, for their navy as well as for maritime trade.
Vladivostok was only operational during the summer season, but Port Arthur would be operational all year.
From the end of the First Sino-Japanese War and 1903, negotiations between Russia and Japan had proved impractical.
Japan offered to recognize Russian dominance in Manchuria in exchange for recognition of Korea as a Japanese sphere of influence.
Russia refused this, so Japan chose war to counter what it described as Russian aggression in Asia.
After discussions broke down in 1904, the Japanese Navy attacked the Russian eastern fleet at Port Arthur, a naval base in the Liaotung province leased to Russia by China, which led to war.
The Japanese defeated the Russians in a series of battles on land and at sea.
The resulting campaigns, in which the Japanese military attained victory over the Russian forces arrayed against them, were unexpected by world observers.
Over time, the consequences of these battles would transform the balance of power in East Asia, resulting in a reassessment of Japan's recent entry onto the world stage.