Ormond then judged that he could not hold Dublin against the Confederates. He, therefore, applied to the English Long Parliament and signed a treaty with them on 19 June 1647 delivering Dublin into the hands of the Parliamentarians on terms that protected the interests of both royalist Protestants and Roman Catholics who had not actually entered into rebellion. At the beginning of August 1647, Ormond handed over Dublin, together with 3000 royalist troops under his command, to the Parliamentarian commander Michael Jones, who had recently arrived from England with 5000 Parliamentarian troops. Ormond in turn sailed for England on 28 July 1647, remarking of his surrender that he "preferred English rebels to Irish ones". On 8 August 1647 the combined royalist and parliamentarian troops won the major Battle of Dungan's Hill against the Confederates.