He was promoted to Commander at the age of 40 and then received his first real command.
David Farragut, born in 1801, entered the US Navy as a Midshipman in 1810, and was given command of a captured British whaling ship while serving in the War of 1812.
He was twelve.
Four years later, he was in the Mediterranean addressing pirates along the Barbary Coast.