Malaysia rose first as a trading point for Asia and Europe, with the ports of Melaka (Malacca in colonial times) and later Singapore, now sovereign and independent.
Singapore later became independent because it had become so wealthy by itself.