Sinn Féin's John O'Dowd has failed in his bid to unseat Michelle O'Neill from her position as the party's vice-president.
In August, the long-standing Stormont assembly member said he would challenge Mrs O'Neill for the role of deputy to leader Mary Lou McDonald.
Party members voted on Saturday at Sinn Féin's ard fheis (party conference).
Mr O'Dowd congratulated Mrs O'Neill after the result was declared, saying he looked forward to working with her.
Comhghairdeas to Michelle on being elected Leas Uachtáran Sinn Féin. I look forward to working with you in the time ahead. Go raibh maith agaibh to all those who supported me over this last number of weeks & those who voted for me.— John O' Dowd (@JohnODowdSF) November 16, 2019
Ahead of the conference, several high-profile Sinn Féin members had spoken publicly about who they would be supporting.
There were no public hustings ahead of the formal vote and Mr O'Dowd did not give media interviews explaining his decision to challenge Mrs O'Neill.
Mrs O'Neill, an assembly member for Mid-Ulster, was given her first leadership position by the party in 2017 when she took over from Martin McGuinness who stepped down due to illness.
She was announced as Sinn Féin's Stormont leader on 23 January that year, two months before the death of Mr McGuinness.
The next year, she was the only candidate nominated to replace Mary Lou McDonald as the party's vice-president.
Mrs McDonald was elected as party president, replacing Gerry Adams who stepped down after 35 years.
Mr O'Dowd briefly filled in as Northern Ireland's deputy first minister in 2011 when Mr McGuinness ran as a candidate in the Irish presidential elections.