 The written history of Singapore dates back to the third century . Later , the Kingdom of Singapura rose in importance during the 14th century under the rule of Sultan Iskandar Shah and Singapore became an important port . Until it was invaded by the Majapahit in 1398 . It then came under the Malacca Sultanate and then the Portuguese , then rapidly becoming a major port city . 
