Charles I was charged with tyranny and was brought to trial. He refused to recognise the right of the court to try him, and made no attempt to defend himself. He was found guilty and executed. After this the country was governed by Oliver Cromwell, and some years later when Charles II assumed power he executed anyone who had anything to do with the trial and execution of Charles I.
You can read more about the trial here