In 1649, Cawley was appointed to the High Court of Justice for the trial of King Charles. He attended every meeting of the court and signed the King's death warrant. During the Commonwealth, he became very active on parliamentary committees and was zealous in buying up the estates of former Royalists. Politically, he was associated with the republicans Thomas Scot and Henry Marten, but he opposed the extreme religious sects. He served on the Council of State in 1651 and 1652.
With the establishment of the Protectorate, Cawley's political activity declined and he concentrated on property speculation. He fled abroad at the Restoration in 1660 and finally joined Edmund Ludlow at Vevey in Switzerland, where he died in January 1667.
References:
J. T. Peacey, William Cawley, Oxford DNB, 2004