British Malaya with strong opposition from the local Malays. The opposition revolved around two issues: loose citizenship requirements and reduction in the Malay rulers' power. Due to the pressure exerted, the Union was replaced with the Federation of Malaya on 31 January 1948. The Federation achieved independence on 31 August 1957. All Malayan states later formed a larger federation called Malaysia on 16 September 1963 together with Singapore, Sarawak and North Borneo. Singapore was expelled from the federation on 9 August 1965. British Malaya The term "British Malaya" () loosely describes a set of states on the Malay Peninsula and the island
Caning in Malaysia retained as a form of legal penalty after the Federation of Malaya declared independence from Britain in 1957. It is largely a legacy of British colonial rule and has nothing to do with "Islamic justice" even though the majority of the Malaysian population are Muslims. Sections 286–291 of the Criminal Procedure Code lay down the procedures governing caning, which is referred to as "whipping" in the Code in accordance with traditional British legislative terminology. The procedures include the following: Boys aged between 10 and 18 may be sentenced to a maximum of ten strokes with a light rattan cane. The