Women were often enrolled as men in the war or they were spies. Some also were nurses, or they just stayed home with the family. They also served as laundresses, cooks, or message carriers. They were n important part of the Civil War effort.
Click this website for a more detailed explanation.