
The history of Singapore may date back to the eighteenth century. Evidence suggests that a significant trading settlement existed in Singapore during the 14th century. In the late 14th century, Singapore was under the rule of Parameswara, who killed the previous ruler and he was expelled by the Majapahit or the Siamese. It then came under the Malacca Sultanate and then the Johor Sultanate. In 1819, Sir Thomas Stamford Raffles negotiated a treaty whereby Johor allowed the British to locate a trading port on the island, leading to the establishment of the British colony of Singapore in 1819.
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.