Who took control of the government after the civil war?