What was Robert e lees role in the civil war?

He was the general for the Confederacy.