They pump madly then manage to mend the hole by making a plug from a sail sewn with wool and oakum and spread with sheep dung. The ship is repaired as best they can. They send boats to find a way through the reef. The Endeavour reaches Lizard Island. There is no wind and the waves are in danger of putting them back on the reef.
Safe anchor is found but they are back in the reef.
Cape York is reached. The Endeavour anchors off Timor and they visit other islands nearby. The ship sets sail again. Java Head is sighted then they enter the Sunda Straits. The Endeavour reaches Batavia.