But Raffles secured his place in history by negotiating with the Sultan of Johor the creation of the Singapore trading post , in 1819 .
Raffles was relegated to the detritus of history after his failure to secure the creation of Singapore .