The two sides were the blue-clad federal soldiers that were mostly from northern states against gray-clad rebels from the south who sought to form a separate country called the Confederate States of America.