Malacca was ceded to Britain according to the 1824 Anglo-Dutch Treaty in exchange for Benkelon on Sumatra Island. From 1826 to 1946, Malacca was first ruled by the British East India Company, and later it was a crown colony. Together with Singapore and Penang, it formed a strait colony. After the abolition of the crown colony, Malacca and Penang became part of the Malayan Federation (later Malaysia).