While on his way to Batavia in order to ask the Dutch for help, Amangkurat I died in the village of Tegalarum near Tegal just after his expulsion, making Amangkurat II king in 1677.[2] He too was nearly helpless, having fled without an army or a treasury to build one.