In 1612, Bendahara Tun Sri Lanang of the Sultanate of Johor was commissioned by Sultan Alauddin Riaayat Shah of Johor to compile Malay history and record it into a book. The book was known as Sulalatus Salatin and later known as Sejarah Melayu, an important literary piece in Malay language history. In 1699, Bendahara Abdul Jalil became Sultan Abdul Jalil IV of Johor after the previous sultan, Mahmud Shah II was murdered, leaving no heir behind.