On his return, Captain Porter had decided to go at once to some islands far out in the Pacific, where he could refit the Essex, and so they sailed in that direction, and when near the islands they were sighted by some of the natives who paddled out in a canoe to meet them, and eagerly invited the sailors ashore, promising them fruit and other provisions. The natives were indeed a strange sight to the eyes of the American boys, for their bodies were heavily tattooed, and gaily ornamented with feathers in true barbaric fashion, but they were very friendly and during the six weeks while the ship was being refitted, although the American sailors were given lessons daily by the chaplain of the Essex, when the lesson was over, they were allowed to mingle freely with the islanders, and Farragut learned many new things from them, things which were afterwards invaluable to him. To the islanders, swimming was as natural and as easy as walking, and although David never became as proficient in this as his new friends, still he learned to swim easily and fast, and too, they taught him how to walk on stilts, and how to use a spear with skill and ease, and in such sports and occupations, time passed quickly and the Americans were most regretful when the day came for them to say farewell to their island friends. But the Essex was ready to sail for Valparaiso, so off they went and when they sailed away, young Farragut was almost as much developed in muscle, and as bronzed by the sun and wind, as were the friends he left behind him on that island to which he always looked back as an enchanted land.

Two months later when the Essex was lying quietly at anchor in the harbour of Valparaiso, and many of her crew happened to be on shore, two English war vessels bore swiftly down upon the Essex in a very menacing way, and Captain Porter was afraid they would attack him, which they had no right to do, for Chili was not at war with either England or America, and so an American vessel should have been safe within that port.

One of these English vessels was a frigate called The Phoebe and the other a sloop named The Cherub. The Phoebe passed within fifteen feet of the Essex, when Captain Porter, who was standing on deck, hailed her, saying:

"If you touch a single yardarm I shall board you instantly!"

The Phoebe passed by without a reply and then both English vessels anchored at the entrance of the harbour, by doing which they kept the Essex a prisoner. In this position the vessels remained for several weeks, when there was a tremendous gale, in which the cables of the Essex gave way, and she at once began to drift towards the English ships. Captain Porter decided that this was his chance to escape, and setting all sail he made for the open sea.

Suddenly something snapped. Down crashed the main topmast, carrying sails, rigging and even some of the crew into the water. In such a crippled condition escape was impossible, and the Essex was driven back again to shore, where she was brought to anchor within pistol shot of the beach.

The Essex had only four guns that could shoot as far as the cannon of the English. The Phoebe and the Cherub took a position out of range of almost all of the guns of the Essex, and then poured broadside after broadside into the unfortunate American.

For two hours and a half the battle raged, the Phoebe throwing seven hundred eighteen-pound shots at the Essex. Captain Porter and his crew fought bravely until one hundred and twenty-four of their men had been killed or wounded, and during all this terrible battle, the first which David Farragut had ever seen, there was no braver officer on the ship than the little midshipman, who hurried here and there, carrying messages for the captain, bringing powder for the guns, and helping wherever he was needed. Years later in discussing this scene, Farragut said:

"I shall never forget the horrid impression made upon me at the sight of the first man I had ever seen killed. It staggered me at first, but they soon began to fall so fast that it all appeared like a dream, and produced no effect on my nerves.... Some gun-primers were wanted and I was sent after them. In going below, while I was on the ward-room ladder, the Captain of the gun directly opposite the hatchway was struck full in the face by an eighteen pound shot, and fell back on me. We tumbled down the hatch together. I lay for some moments stunned by the blow, but soon recovered consciousness enough to rush up on deck. The Captain seeing me covered with blood, asked if I were wounded, to which I replied, 'I believe not, sir.'

"'Then,' said he, 'where are the primers?' This brought me to my senses and I ran below again and brought up the primers."