History of Singapore
During World War 2, Singapore was conquered and occupied by the Japanese Empire from 1942 to 1945. When the war ended, Singapore reverted to British control, with increasing levels of self-government being granted, culminating in Singapore's merger with the Federation of Malaya to form Malaysia in 1963. However, social unrest and disputes between Singapore's ruling People's Action Party and Malaysia's Alliance Party resulted in Singapore's expulsion from Malaysia. Singapore became an independent republic on 9 August 1965.
Singapore–United Kingdom relations
Britain first established a settlement on the island of Singapore in 1819 under Sir Thomas Stamford Raffles, and took possession of the whole island in 1823. It formally became a British colony in 1824, and remained in British hands (apart from the Japanese occupation of 1941-45) until 1963, when the island was granted its independence. Between 1963 and 1965, Singapore formed part of Malaysia. The British Armed Forces maintained a presence in Singapore at the request of the founding Prime Minister Lee Kuan Yew for stability reasons and to allow for a gradual transition to independence and self-reliance. After the end of the Malayan Emergency and "Konfrontasi", the British military gradually withdrew during the 1960s and 1970s, with the infrastructure turned over to the fledgling Singapore Armed Forces.