Complex sentence: Smith served as a Major General of Maryland Militia during the War of 1812, and commanded the defenses of Baltimore during the Battle of Baltimore and Fort McHenry in 1814.
Split into simpler sentences: Smith served as a Major General of Maryland Militia during the War of 1812. He commanded the defenses of Baltimore during the Battle of Baltimore and Fort McHenry in 1814.