Minnesota eventually organized and recruited volunteers for 11 infantry regiments, two cavalry regiments, a heavy artillery regiment, three light artillery batteries and two sharpshooter companies, totaling 22,000 men. Many of these Soldiers also served on Minnesota's frontier; in fact, hastily organized local militias and detached companies from several volunteer regiments were the only line of defense during Minnesota's Dakota (Sioux) War of 1862.