De Mendosa Ending?

I’ve tried to overthrow the king and create a constitution government after defeating Tomas, but de Vega always discovers the plot. Please help?