 Masahor and his army wanted to approach Kuching via the Sarawak River.In the battle that ensued, the Sarawak forces gained the upper hand when Charles Brooke succeeded in ambushing and destroying all Masahor's ships.Facing defeat, Masahor retreated to Brunei, where he would seek shelter from the Sarawak government.