"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.