Singapore achieved independence through its merger with and subsequent separation from Malaysia between 1963-1965. Singapore merged with Malaya and other British territories in 1963 to form Malaysia due to economic and security concerns. However, political and economic differences between the Singapore and Malaysian governments led to tensions and two racially-charged riots in Singapore. This prompted Singapore's separation from Malaysia in 1965, allowing it to become a fully independent nation.