Notwithstanding Captain Bowery’s kind offers, Dampier accepted an invitation from a Captain Welden to sail to Tonquin. This voyage was performed, as well as another to Malacca. On his return from the last voyage, a little before Christmas, 1689, he met a Mr Morgan, one of the crew of the Cygnet. He had become mate of a Danish ship. From this man he learned the fate of many of his former companions. Some had taken service with the Great Mogul; others had joined the garrison at Fort George, having received a pardon for their piratical proceedings. The remainder of the crew, after committing various piracies, had entered into the service of one of the princes of Madagascar, in a harbour of which island their ship had sunk.

After making other trips, Dampier went to Fort Saint George, and from thence proceeded to Bencoulin, an English factory on the west coast, where he acted as gunner for five months. He had been persuaded to leave Madras by a Mr Moody, supercargo of a ship called the Mindanao Merchant, who had promised to buy a vessel and send him in command of her, to trade with the natives of the small island of Meangis. Mr Moody had in his possession a son of the King of the island, dubbed Prince Jeoly, who, with his mother, had been captured by the Malays, from whom Mr Moody had purchased them. Dampier’s idea was that by treating them kindly he might be able to open up a commerce with the people, and establish a factory there. The prince was tattooed all down his breast and between his shoulders, as also on his thighs, while several broad rings or bracelets were marked round his arms and legs. The drawings did not represent figures or animals, but were full of lines, flourishes, chequered work, very skilfully and gracefully marked.

The poor young savage was thus known as the Painted Prince.

Mr Moody, being uncertain about fulfilling his engagement, as a recompense to Dampier, gave him a half share in the Painted Prince and his mother. Dampier took the utmost care of them; but, notwithstanding this, the unfortunate mother soon died, to the great grief of her son, who wrapped her up in all her clothes, as well as in two new pieces of chintz which Mr Moody had given her, and she was thus buried.

Growing weary of his life at Bencoulin, and pining to return home, being also anxious to carry out his project of making a voyage to Meangis, Dampier requested his discharge.

This was granted by the Governor and Council, and the Defence, Captain Heath, bound for England, coming into the roads, he agreed to ship on board her. Mr Moody had made over his share of the Painted Prince to Mr Goddard, her chief mate. When, however, Dampier was about to embark, the Governor, who was an ill-tempered, tyrannical man, refused to allow him to go. In vain he pleaded, and at last, having arranged with Mr Goddard to be received on board at night, leaving all his property, with the exception of his journals and a few other papers, he crept through one of the port-holes, and got into the boat which was waiting for him. He lay concealed until the last boat from the shore had left the ship, which then set sail for the Cape of Good Hope on the 25th of January, 1691.

Owing to the bad nature of the water, fever, which carried off many of the men and reduced others to the greatest state of weakness, broke out on board. To so helpless a condition was the crew reduced that they were unable to carry the ship into Cape Town Harbour, and would have had to keep at sea had not a Dutch captain sent a hundred men on board to take in her sails and bring her to an anchor. Here she remained some weeks, while the crew regained their strength. On the 23rd of May the Defence sailed from the Cape, and after touching at Saint Helena, without further mishap arrived in the Channel. Here, convoyed by some men-of-war, she got off Plymouth, and thence, parting with several ships which had kept her company, she ran into the Downs, where she anchored on the 16th of September, 1691.

Dampier, poor as he had been when he first joined the buccaneers, had to part with his share in the Painted Prince to obtain the means of reaching his home. The unfortunate Jeoly, after being carried about for some time to be shown as a sight, died of small-pox at Oxford.

From the time he left England in 1679, on board the Loyal Merchant, until his return in the Defence, upwards of twelve years had elapsed, during which period he had circumnavigated the globe, and visited more strange countries and gone through more hazardous adventures than almost any man who has ever lived, impelled undoubtedly by a roving disposition, but still more so by his ardent thirst to obtain a knowledge of natural history.

What became of his poor wife during this time, or how he supported himself on his return home, we are not told, except that he published the following year his “New Voyage Round the World,” to which he afterwards added a supplement, entitled “Voyages and Discoveries.” Possibly he obtained a good sum for these works, as from their excellence they soon brought the author into notice. Weary of wandering, he probably remained for some time on shore.