 But on March 14, 1683 Sultan Ageng was caught and then imprisoned in Batavia.The VOC continued to pursue and crushed the resistance of Sultan Ageng's followers who were still in the leadership of Prince Purbaya and Sheikh Yusuf.On May 5, 1683, the VOC sent Untung Surapati, who was a lieutenant and his Balinese troops, joining forces led by the VOC Lieutenant Johannes Maurits van Happel to subdue the Pamotan and DayeuhLuhur areas, where on December 14, 1683 they succeeded in capturing Sheikh Yusuf.