The federation, along with the other Malay states and British possessions of the peninsula, was overrun and occupied by the Japanese during World War II. After the liberation of Malaya following the Japanese surrender, the federation was not restored, but the federal form of government was retained as the principal model for consolidating the separate States as an independent Federation of Malaya and the Federation's later evolution into Malaysia.