 After bands surrendered at the end of the Dakota War of 1862, warriors were tried by a US military tribunal.Thirty-nine Dakota warriors were sentenced to be executed by hanging, and one was spared.More than 250 men were held several years as prisoners.