Sterett was born in 1773. He married Molly Harris, and farmed at a 260-acre slave plantation known as "Mount Deposit". The couple had eleven children. They are as follows : David Harris, Essex, Frances Mary, Josephine, James William I, James William II, Mary Harris Winder, Joseph,Maria Ridgley Hollins, Louisa Sherlock Hollins, and Augusta Temple.
When war broke out between the United States and Great Britain, Sterett commanded the 5th Maryland Regiment, a so-called "dandy regiment" which was composed of around 500 men, mostly volunteers raised from the City of Baltimore. The 5th first saw action at the Battle of Bladensberg on August 24, 1814, where the regiment was placed in the first line of defense, and where the defending Americans would be routed by the British. Pressed by the British attack, some of the militia units broke under fire and fell back, leaving the 5th exposed to the full weight of the enemy. Sterett's men "gallantly" held their ground, pushing the British back at bayonet point, but the 5th was soon flanked by the advancing enemy and Brigadier General Tobias Stansbury soon ordered a full retreat. Although the 5th had "evinced a disposition to make a gallant resistance", it was out-flanked by the redcoats and eventually forced to retreat in some disorder. After the battle, British forces entered Washington DC and burned many public buildings in the city.
Battle of North Point
Sterett's men also performed with great credit on September 12 at the Battle of North Point which, while tactically a defeat for the Americans, bought valuable time to organise the successful defense of Baltimore. As the British advanced, some of the militia regiments broke under fire, but the 5th Maryland Regiment and the 27th held their ground and were able to retreat in good order, having inflicted significant casualties on the advancing enemy. Corporal John McHenry of the 5th Regiment wrote an account of the battle:
Our Regiment, the 5th, carried off the praise from the other regiments engaged, so did the company to which I have the honor to belong cover itself with glory. When compared to the Regiments we were the last that left the ground...had our Regiment not retreated at the time it did we should have been cut off in two minutes.
After the battle Sterett retreated to his plantation, which was nearby, and made arrangements to remove his family from Mount Deposit to a place of greater safety. The British occupied his property, described by one subaltern as "a mansion of considerable size and genteel exterior", and looted the contents, in particular the wine cellar, following which "not a single pint either of wine or spirits remained". After North Point, Sterett took up a defensive position on Hampstead Hill along with his regiment, and awaited the British attack. The following naval bombardment of Baltimore was not able to break the city's defences, and the British, perceiving the Americans to be "entrenched in the most formidable manner, having covered the whole face of the heights with breastworks", eventually withdrew without risking a land assault.
Death and legacy
Sterett was regarded by his colleagues as a brave and reliable soldier. He died in 1821, and was succeeded as lieutenant colonel of the 5th Regiment by George H. Steuart who had been a captain serving under him at Bladensberg and North Point.