In 1588, Ó Duibheannaigh was committed to Dublin Castle. Failing to convict him of any crime punishable by death, Lord DeputyWilliam Fitzwilliam sought authority from William Cecil, 1st Baron Burghley to "be rid of such an obstinate enemy of God and so rank a traitor to Her Majesty as no doubt he is". He lay in prison until November 1590, being then released ostensibly on his own petition but doubtless through policy. He was protected by Hugh O'Neill, Earl of Tyrone until 1607, and escaped arrest until the middle of 1611, when, almost eighty years old, he was taken while administering Confirmation and again committed to Dublin Castle. His execution was at the personal wish of the Lord Deputy of Ireland, Sir Arthur Chichester, who was vehemently anti-Catholic, and seems to have been rather against the wishes of the Government as a whole. On 28 January 1612, Ó Duibheannaigh was tried for high treason, found guilty by the majority of a packed jury, and sentenced to die on 1 February. He was drawn on a cart from the Castle to the gallows beyond the river; the whole route was crowded with Catholics. Protestant clergymen pestered him with ministrations and urged him to confess he died for treason. "Pray let me be", he answered, "the viceroy's messenger to me here present, could tell that I might have life and revenue for going once to that temple", pointing to a tower opposite. He kissed the gallows before mounting, and then proceeding to exhort the Catholics to constancy, he was thrown off, cut down alive, and quartered. With him suffered Patrick O'Loughran, a priest arrested at Cork. The people, despite the guards, carried off the halter, his clothes, and even fragments of his body and chips of the gallows. They prayed all night by the remains, an infirm man was reported cured by touching them, and Mass after Mass was said there from Midnight until day. Such was the concourse that the viceroy ordered the members to be buried on the spot, but next night the Catholics exhumed them and interred them in St. James's Churchyard. A list of martyrs compiled by Ó Duibheannaigh was used by Rothe in his "Analecta".
Beatification
On 27 September 1992, Ó Duibheannaigh, with sixteen others, the Irish Catholic Martyrs, was beatified by Pope John Paul II in Rome. The Feast Day of the Irish Martyrs is celebrated on 20 June.