The boy was but thirteen when his father, in 1798, was called into the naval service of his country in the spirited effort made by President Adams to resist the aggressions of France upon the ocean. He took the command of a small frigate, built under his direction in Rhode Island, named the General Greene, and carried with him to sea his son Oliver as a midshipman, at the express solicitation of the youth. The General Greene was actively employed in the waters of the Gulf of Mexico, giving all its officers abundant opportunity for practice in the infant service. The French war flurry after a while blew over, as the Directory, the mainspring of these aggressions, lost power; peace was patched up, and Jefferson shortly after inaugurated an unwholesome pacific policy by a sweeping reduction of the navy, as if it were not small enough already. In this mutilating operation the elder Perry was dropped, the younger one fortunately retained.

The navy, however, was soon revived by the demands of the nation to resist the iniquitous and insulting depredations upon life and property inflicted by the Barbary powers. The United States had borne far too patiently with these injuries, though she had the honor of being in advance of the old powers of Europe in resisting them. The Mediterranean became the scene of many a chivalrous exploit of our early officers, a score of whom, headed by Preble, Bainbridge, Decatur, Somers, and others of that stamp of fiery and indomitable valor, gained immortal laurels by their deeds of daring in conflict with the infidel.

The young Perry served as midshipman in the frigate Adams, which sailed from Newport, in 1802, to join Commodore Morris' command at Gibraltar. His ship was for some time employed in blockading a Tripolitan at that port; a tedious but instructive service in manœuvring, at the close of which Perry, in consequence of his accomplishments, was promoted by his captain to the duties of a lieutenant. The frigate was then employed as a convoy, making the tour of the northern ports. This gave Perry an opportunity to study scenes of the old world, which can never lose their influence in the formation of the man of education and refinement.

In 1809, Perry got to sea in command of an armed schooner, the Revenge, which was employed on the coast service. While on the southern coast, he had an opportunity to gain distinction, which he did not fail to avail himself of, in cutting out a stolen American vessel from under the guns of a British ship in Spanish waters, off Florida. Conveying his prize off the coast, he was threatened by his Majesty's ship Gore, of double his force, when, having, as Mackenzie says, "no idea of being 'Leopardized,'" he put his little schooner in readiness for boarding at a moment's notice—a spirited resolution of great bravery, which he would no doubt have carried out, had the British vessel insisted upon overhauling the Revenge. While engaged in cruising off Connecticut and Rhode Island, in the beginning of 1811, he unfortunately lost his vessel, through an error of the pilot, on the Watch Hill Reef, opposite Fisher's Island, as he was sailing from Newport to New London. Every seamanlike effort was made to save the vessel, and when all was unavailing, Perry showed equal skill and resolution in landing the crew in a heavy January swell, with a violent wind. He was himself the last to leave the vessel. He was not merely acquitted of neglect, but his conduct was extolled by a court of inquiry.

He was, of course, thrown temporarily out of command by the loss of his vessel; an interval of repose which he hastened to turn to account by forming a matrimonial alliance with Miss Elizabeth Champlin Mason, of an influential family at Newport, to whom he had become engaged several years before, on his arrival from the Mediterranean. The wedding took place in May, 1811, affording him ample opportunity for the honeymoon, previous to the actual outbreak of the war impending with England.

This event found him at Newport, with the rank of master commandant, in charge of the flotilla of gunboats keeping watch in the harbor. It was a service not altogether adapted to satisfy the ambitious spirit of a young officer, but it was important in itself, and became, in Perry's hands, a step to future eminence. His course, at this time, illustrates a valuable truth, that no honorable employment is profitless to a man of genius. He will in some way turn it to account. Constructing gunboats, and recruiting men in port, were services not calculated to make any great blaze in a despatch, but they conducted Perry to his glorious bulletins of victory, and the resounding praises of the nation.

He saw the new field of military operations opening on the lakes, and his experienced eye must have seen as well the certain difficulties, as the possible honors of the situation. It was not the post which an officer with the claims of Perry would have sought, while brilliant victories were being won, in the eye of the world, on the vast theatre of the ocean. Others, however, were before him on that element.

Despairing of a command at sea, he offered himself to Commodore Chauncey, who had recently been placed at the head of the lake service. His character was understood by this officer, and the proffer accepted. The necessary communications were made to the Government, and in the middle of February, in 1813, he was ordered to join Chauncey at Sackett's Harbor, with the picked men of his Newport flotilla. He lost no time in reporting himself at the appointed spot. His destination was Lake Erie, where he was to supervise the construction of two vessels to be employed in the next campaign, and he was anxious to get to the work; but Chauncey, who felt the need of his aid, detained him for a while on Lake Ontario. He, however, toward the end of March, reached Erie, where the vessels were building.

His experience in constructing gunboats at Newport was now of avail to him. He put the defence of the works, which had been greatly neglected, in a state of efficiency, and set himself to the collection of supplies, workmen, and an armament: no easy matter at that day and in that place in the wilderness; for such, as compared with our own time, it then was. The labors of Perry in this work of preparation were, in fact, of the most arduous character. They should not be forgotten as a heavy item to his credit in the sum total of his victory. Three gunboats and two brigs were launched and equipped in May.

It was at this time that he received advices that Chauncey was about to make an attack on the British post of Fort George, at the mouth of the Niagara River. He had been promised a share in this adventure, and hastened to the scene. The incidents of this journey show the spirit of the man. In his own words, in a letter describing this passage of his life: "On the evening of May 23d, I received information, about sunset, that Commodore Chauncey would in a day or two arrive at Niagara, when an attack would be made on Fort George. He had previously promised me the command of the seamen and marines that might land from the fleet. Without hesitation I determined to join him. I left Erie about dark in a small four-oared open boat. The night was squally and very dark. After encountering headwinds and many difficulties, I arrived at Buffalo on the evening of the 24th, refreshed, and remained there until daylight; I then passed the whole of the British lines in my boat, within musket-shot. Passing Strawberry Island, several people on our side of the river hailed and beckoned me on shore. On landing they pointed out about forty men on the end of Grand Island, who, doubtless, were placed there to intercept boats. In a few moments I should have been in their hands. I then proceeded with more caution. As we arrived at Schlosser, it rained violently. No horse could be procured. I determined to push forward on foot; walked about two miles and a half, when the rain fell in such torrents I was obliged to take shelter in a house at hand. The sailors whom I had left with the boat, hearing of public horses on the commons, determined to catch one for me. They found an old passing one which could not run away, and brought him in, rigged a rope from the boat into a bridle, and borrowed a saddle without either stirrup, girth, or crupper. Thus accoutred they pursued me, and found me at the house where I had stopped. The rain ceasing, I mounted; my legs hung down the sides of the horse, and I was obliged to steady the saddle by holding by the mane. In this style I entered the camp, it raining again most violently. Colonel Porter being the first to discover me, insisted upon my taking his horse, as I had some distance to ride to the other end of the camp, off which the Madison lay."