The capture and trial of Charles led to his beheading in January 1649 at Whitehall Gate in London . The capture and subsequent trial of Charles led to his beheading in January 1649 at Whitehall Gate in London , making England a republic .