Last year , he forged a loose alliance with the main political parties to topple the king and restore democracy .