Black soldiers served in artillery and infantry and performed all noncombat support functions that sustain an army, as well. Black carpenters, chaplains, cooks, guards, laborers, nurses, scouts, spies, steamboat pilots, surgeons, and teamsters also contributed to the war cause.