"Endeavour" then sailed north along the Australian coast. She ran into the Great Barrier Reef near Cape Tribulation. The crew were able to get the ship onto a beach on the mainland. This is now the site of the town of Cooktown. They stayed for seven weeks so that basic repairs could be made to her hull. On 10 October 1770, she limped into port in Batavia in the Dutch East Indies for more substantial repairs. She left on 26 December, rounded the Cape of Good Hope on 13 March 1771, and reached the English port of Dover on 12 July, having been at sea for nearly three years.