The story of the building of the Essex is that of an aroused and reliant people. The great timbers were cut in the wood lots of the towns near by and were hauled through the snowy streets of Salem on ox-sleds while the people cheered them as they passed. The Essex was a Salem ship from keel to truck. Her cordage was made in three ropewalks. Captain Jonathan Haraden, the most famous Salem privateersman of the Revolution, made the rigging for the mainmast in his loft. The sails were cut from duck woven for the purpose in the mill on Broad Street and the ironwork was forged by Salem shipsmiths. When the huge hempen cables were ready to be conveyed to the frigate, the workmen hoisted them upon their shoulders and in procession marched to the music of fife and drum. In 1799, six months after the oak timbers had been standing trees, the Essex slid from the stocks into the harbor of old Salem. She was the handsomest and fastest American frigate of her day and when turned over to the Government, she cost what seemed at that day the very considerable amount of seventy-five thousand dollars.

Peace was patched up with France, however, and the Essex was compelled to pursue more humdrum paths, now in the Indian Ocean and again with the Mediterranean squadron, until war with England began in 1812. It was intended that Captain Porter should rendezvous with the Constitution and the Hornet in South American waters for a well-planned cruise against British commerce, but other engagements detained Bainbridge, notably his encounter with the Java, and so they missed each other by a thousand miles or so. Since he had no means of communication, it was characteristic of Porter to conclude to strike out for himself instead of wandering about in an uncertain search for his friends.

Porter conceived the bold plan of rounding the Horn and playing havoc with the British whaling fleet. This adventure would take him ten thousand miles from the nearest American port, but he reckoned that he could capture provisions enough to feed his crew and supplies to refit the ship. As a raid there was nothing to match this cruise until the Alabama ran amuck among the Yankee clippers and whaling barks half a century later. It was the wrong time of year to brave the foul weather of Cape Horn, however, and the Essex was battered and swept by one furious gale after another. But at last she won through, stout ship that she was, and her weary sailors found brief respite in the harbor of Valparaiso on March 14, 1813. Thence Porter headed up the coast, disguising the trim frigate so that she looked like a lubberly, high-pooped Spanish merchantman.

The luck of the navy was with the American captain for, as he went poking about the Galapagos Islands, he surprised three fine, large British whaling ships, all carrying guns and too useful to destroy. To one of them, the Georgiana, he shifted more guns, put a crew of forty men aboard under Lieutenant John Downes, ran up the American flag, and commissioned his prize as a cruiser. The other two he also manned—and now behold him, if you please, sailing the Pacific with a squadron of four good ships! Soon he ran down and captured two British letter-of-marque vessels, well armed and in fighting trim, and in a trice he had not a squadron but a fleet under his command, seven ships in all, mounting eighty guns and carrying three hundred and forty men and eighty prisoners. Two of these prizes he discovered to be crammed to the hatches with cordage, paint, tar, canvas, and fresh provisions. The list could not have been more acceptable if Captain David Porter himself had signed the requisition in the New York Navy Yard.

Lieutenant Downes was now sent off cruising by himself, and so well did he profit by his captain's example and precepts that in a little while he had bagged a squadron of his own, three ships with twenty-seven guns and seventy-five men. When he rejoined the flagship in a harbor of the mainland, Porter rewarded him by calling his cruiser the Essex, Junior, promoting him to the rank of commander, and increasing his armament. They then resumed cruising in two squadrons, finding more British ships and sending them into the neutral harbor of Valparaiso or home to the United States with precious cargoes of whale oil and bone. Within a few months he swept the Southern Pacific almost clean of British merchantmen, whalers, and privateers. Winter coming on, Porter then sailed to the pleasant Marquesas Islands and laid the Essex up for a thorough overhauling. The enemy had furnished all needful supplies and even the money to pay the wages of the officers and crew.

Fit for sea again, the Essex and the Essex, Junior, betook themselves to Valparaiso where they received information that the thirty-six-gun frigate Phoebe of the British navy was earnestly looking for them. She had been sent out from England to proceed to the northwest American coast and destroy the fur station at the mouth of the Columbia River. At Rio de Janeiro Captain Hillyar had heard reports of the ravages of the Essex and he considered it his business to hunt down this defiant Yankee. To make sure of success, he took the sloop-of-war Cherub along with him and, doubling the Horn, they made straight for Valparaiso. David Porter got wind of the pursuit but assumed that the Phoebe was alone. He made no attempt to avoid a meeting but on the contrary rather courted a fight with his old friend Hillyar, whom he had known socially on the Mediterranean station. For an officer of Porter's temper and training the capture of British whalers was a useful but by no means glorious employment. He believed the real vocation of a frigate of the American navy was to engage the enemy.

The Phoebe and the Cherub sailed into the Chilean roadstead in February, 1814, and found the Essex there. As Captain Hillyar was passing in to seek an anchorage, the mate of a British merchantman climbed aboard to tell him that the Essex was unprepared for attack and could be taken with ease. Her officers had given a ball the night before in honor of the Spanish dignitaries of Valparaiso, and the decks were still covered with awnings and gay with bunting and flags. Reluctant to forego such a tempting opportunity, Captain Hillyar ran in and luffed his frigate within a few yards of the Essex. To his disappointed surprise, the American fighting ship was ready for action on the instant. Though the punctilious restraints of a neutral port should have compelled them to delay battle, Porter was vigilant and took no chances. The liberty parties had been recalled from shore, the decks had been cleared, the gunners were sent to quarters with matches lighted, and the boarders were standing by the hammock nettings with cutlasses gripped. Making the best of this unexpected turn of events, the English captain shouted a greeting to David Porter and politely conveyed his compliments, adding that his own ship was also ready for action. So close were the two frigates at this moment that the jib-boom of the Phoebe hung over the bulwarks of the Essex, and Porter called out sharply that if so much as a rope was touched he would reply with a broadside. The urbane Captain Hillyar, perceiving his disadvantage, exclaimed, "I had no intention of coming so near you. I am very sorry indeed." With that he moved his ship to a respectful distance. Later he had a chat with Captain Porter ashore and, when asked if he intended to maintain the neutrality of the port, made haste to protest, "Sir, you have been so careful to observe the rules that I feel myself bound in honor to do the same."

After a few days the Phoebe and the Cherub left the harbor and watchfully waited outside, enforcing a strict blockade and determined to render the Essex harmless unless she should choose to sally out and fight. David Porter was an intrepid but not a reckless sailor. He had the faster frigate but he had unluckily changed her battery from the long guns to the more numerous but shorter range carronades. He was not afraid to risk a duel with the Phoebe even with this handicap in armament, but the sloop-of-war Cherub was a formidable vessel for her size and the Essex, Junior, which was only a converted merchantman, was of small account in a hammer-and-tongs action between naval ships.

For his part, Captain Hillyar had no intention of letting the Yankee frigate escape him. "He was an old disciple of Nelson," observes Mahan, "fully imbued with the teaching that the achievement of success and not personal glory must dictate action. Having a well established reputation for courage and conduct, he intended to leave nothing to the chances of fortune which might decide a combat between equals. He therefore would accept no provocation to fight without the Cherub. His duty was to destroy the Essex with the least possible loss."

Porter endured this vexatious situation for six weeks and then, learning that other British frigates were on his trail, determined to escape to the open sea. This decision involved waiting for the most favorable moment of wind and weather, but Porter found his hand forced on the 28th of March by a violent southerly gale which swept over the exposed bay of Valparaiso and dragged the Essex from her anchorage. One of her cables parted while the crew struggled to get sail on her. As she drifted seaward, Porter decided to seize the emergency and take the long chance of running out to windward of the Phoebe and the Cherub. He therefore cut the other cable, and the Essex plunged into the wind under single-reefed topsails to claw past the headland. Just as she was about to clear it, a whistling squall carried away the maintopmast. This accident was a grave disaster, for the disabled frigate was now unable either to regain a refuge in the bay or to win her way past the British ship.