Marryat's time aboard the Imperieuse included action off the Gironde, the rescue of a fellow midshipman who had fallen overboard, captures of many ships off the Mediterranean coast of Spain, and the capture of the castle of Mongat. When the Imperieuse shifted to operations in the Scheldt, in 1809, Marryat contracted malaria, and returned to England on HMS Victorious, 74 guns.
After recuperating, Marryat returned to the Mediterranean in HMS Centaur, 74, and again saved a shipmate by leaping into the sea after him. He then sailed as a passenger to Bermuda in HMS Atlas, 64 guns, and from thence to Halifax, Nova Scotia on the schooner Chubb, to join the frigate HMS Aeolus of 32 guns (April 27, 1811).
A few months later, Marryat again earned distinction by leading the effort to cut away the Aeolus' mainyard to save the ship during a storm, and continuing a pattern, he also saved one of the men from the sea. Shortly thereafter, he moved to the frigate HMS Spartan, participating in the capture of a number of American ships (the War of 1812 having begun by then), and on December 26, 1812 was promoted to lieutenant.
As lieutenant, Marryat served in the sloop Espiegle and in the Newcastle, and was promoted to commander June 13, 1815, just in time for peace to break out. He then pursued scientific studies, invented a lifeboat (thus earning both a gold medal from the Royal Humane Society and the nickname "Lifeboat"), and in 1819 married Catherine Shairp, with whom he had four sons and seven daughters.
In 1820 he commanded the sloop Beaver and temporarily commanded Rosario for the purpose of bringing back to England the despatches announcing the death of Napoleon I on St Helena. He also took the opportunity to make a sketch of Napoleon's body on his deathbed, which was later published as a lithograph. (Marryat's artistic skills were modest, but his sketches of shipboard life above and below deck have considerable charm that overcomes their crudities.)
In 1823 he was appointed to HMS Larne, 20, and took part in an expedition against Burma in 1824. During this expedition, which resulted in large losses due to disease, he was promoted to command HMS Tees, 28, and this gave him his post captain rank. He was back in England in 1826. In 1829 he was commanding the frigate HMS Ariadne on a mission to search for shoals around the Madeira and Canary Islands. This was an uninspiring exercise, and between that and the recent publication of his first novel, The Naval Officer, he decided to resign his commission in November 1830 and take up writing full time.
He was named a Fellow of the Royal Society in recognition of his invention and other achievements. In 1843 he moved to a small farm at Langham Manor in Norfolk, where he died in 1848. His daughter Florence Marryat later became well-known as a writer and actress.
Marryat's novels are characteristic of their time, with the concerns of family connections and social status often overshadowing the naval action, but they are interesting as fictional renditions of the author's 25 years of real-life experience at sea. These novels, much admired by Joseph Conrad and Ernest Hemingway, were among the first sea novels. They were models for later works by C. S. Forester and Patrick O'Brian that were also set in the time of Nelson and told the stories of young men rising through the ranks through successes as naval officers.
His later novels were generally for the children's market, including his most famous novel for contemporary readers, The Children of the New Forest, which was published in 1847.