 British intervention in the Malay peninsula from the 1820s onwards culminated, during the 1870s, in the formation of British Malaya.During this period, Malaya became an increasingly important producer of natural rubber and tin, much of which was shipped out through Singapore.Singapore also served as the administrative centre for Malaya until the 1880s, when the capital was shifted to Kuala Lumpur.