<Tr> <Td> Expatriate populations </Td> <Td> 2,500,000 people of Indonesian - origin living in Malaysia </Td> <Td> No information </Td> </Tr> <P> The History of Indonesia and History of Malaysia were often intertwined . Throughout their history the borders of ancient kingdoms and empires--such as Srivijaya, Majapahit, Malacca, Aceh and Johor - Riau--often comprised both modern day countries . For centuries, the relations, migrations and interactions between Indonesian and Malaysian people have been quite intense, and it is common for Malaysians to trace their relatives in Indonesia and vice versa . The Malays' homes are on both sides of the strait and also on coastal Borneo, while Dayak homelands are both in East Malaysian Borneo and Indonesian Kalimantan . Some of Indonesian origin ethnic groups such as Minang, Bugis, and Javanese had significant migration to Malaysia and formed significant communities in Malaysia . Negeri Sembilan in particular have large numbers of Minangkabau people . </P> <P> During the colonial era, the region was contested among European colonial powers, notably British and Dutch . From the 17th to early 19th century, various states, ports and cities in the region were held as Dutch colonies or British possessions . The current borders between Indonesia and Malaysia were basically inherited from those established by the colonial powers through their treaties . The Anglo - Dutch Treaty of 1814 and 1824 significantly shaped the territories of Indonesia, Malaysia, Singapore, and India . These treaties officially divided the archipelago into two: Malaya, which was ruled by the United Kingdom, and the Dutch East Indies, which was ruled by the Netherlands . The successor states of Malaya and the Dutch East Indies are Malaysia and Indonesia, respectively . The line that separated the spheres of influence between the British and the Dutch ultimately became the border between Indonesia and Malaysia . </P> <P> During World War II both British Malaya and Borneo together with the Dutch East Indies fell to the Japanese Empire . After the Japanese defeat, Indonesia declared its independence in 1945, followed a war of independence against Dutch until 1949 . The British reestablished their authority in Malaya, and their withdrawal two decades later meant the independence of the states of Malaysia, Singapore, and Brunei . The diplomatic relations between the Republic of Indonesia and Federation of Malaya were established promptly after Malaya's independence from Britain in 1957 . </P>

What caused the malay world to be divided into two countries now known as malaysia and indonesia