Muzaffar Shah was killed in 1540 by Khoja Zainal, leader of a Bruneian envoy, for committing adultery with his wife, at Pekan. He is styled Marhum Tengah after his death and was succeeded by his younger brother, Raja Ismail.[citation needed]