He warred against his country - the United States.
His country was Virginia.
As Rear Admiral Samuel Philips Lee, cousin to Robert E. Lee, said when asked why he stayed loyal to America;
When I find the word Virginia in my commission, I will join the Confederacy