Complex sentence: The title was retained when Singapore became the fourteenth state of Malaysia in 1963, and acts as the representative of the Yang di-Pertuan Agong of Malaysia.
Split into simpler sentences: The title was retained when Singapore became the fourteenth state of Malaysia in 1963. The office holder then acted as the representative of the Yang di-Pertuan Agong of Malaysia.