Grievous use to be evil and use to serve the separatists but he betrayed them and turned to the good guys.