Chey Chettha IV, bornAng Sor, was a Cambodian king for several periods in Camboia's history. He was the second son of Barom Reachea V and also a younger brother of Kaev Hua II. Vietnamese army attacked Phnom Penh, the kingKaev Hua II fled into forest. Ang Sor surrendered to Vietnamese. He was crowned the Cambodian king by Vietnamese, while Ang Nan was crowned the vice king. Chey Chettha IV occupied Longvek, Padumaraja III occupied Prey Nokor. Both of them paid tribute to Vietnamese Nguyễn lord. In 1688, Dương Ngạn Địch, a Chinese adventurer and also a general of Nguyễn lord, was murdered by Hoàng Tiến. Hoàng Tiến occupied Mỹ Tho and revolted against Nguyễn lord. Hoàng Tiến also attacked Cambodia. Using this excuse, Chey Chettha IV started to building fortifications and did not pay tribute to Nguyễn lord. In the same year the rebellion was put down, Chey Chettha had to pay tribute like before. Chey Chettha IV abdicated in favour of his son Outey I in 1695. In the next year Outey I died, Chey Chettha IV restored. Nguyễn Hữu Cảnh was sent to Saigon by Nguyễn lord to expand his southern territory. It violated Cambodia's advantages; Chey Chettha IV tried to drive them out, however, he was defeated. In 1700, Vietnamese army captured Phnom Penh. The vice king Ang Em surrendered to Vietnamese, and ascended the throne. Chey Chettha IV surrendered in the next year, he was allowed to restore. Chey Chettha IV abdicated in favour of his son Thommo Reachea III in 1702. Chey Chettha IV then married a daughter to the vice king Ang Em. But, Thommo Reachea III drove out Ang Em with the help of Ayutthaya Kingdom. Ang Em fled to Saigon, in there he was supported by Nguyễn lord. A Vietnamese army under Nguyễn Cửu Vân invaded Cambodia again. Thommo Reachea III fled to Ayutthaya Kingdom. Ang Em came back to Cambodia and lived in Longvek. Chey Chettha IV was installed as the king by Vietnamese. He abdicated in 1706, and Thommo Reachea III crowned the king again. With the help of Ayutthaya Kingdom, Thommo Reachea III came back to Cambodia, and captured Longvek in 1714. A Vietnamese army under Trần Thượng Xuyên and Nguyễn Cửu Phú was sent to Cambodia to help Ang Em. They besieged Longvek. Chey Chettha IV and Thommo Reachea III were forced to flee to Ayutthaya Kingdom.