I believe the answer is: Democratic; Republican
At that time, the confederate's defeat made the influence of democratic party became significantly weaker in the south.
Overtime, many southerners started to change their party affiliation from Democratic to Republican.