In Malaysia, it is treason to commit offences against the Yang di-Pertuan Agong's person, or to wage or attempt to wage war or abet the waging of war against the Yang di-Pertuan Agong, a Ruler or Yang di-Pertua Negeri. All these offences are punishable by hanging, which derives from the English treason acts (as a former British colony, Malaysia's legal system is based on English common law).