Boris Johnson has sacked the Secretary of State for Nothern Ireland Julian Smith and replaced him with Brandon Lewis in a move that has shocked politicians on both sides of the border. 

Smith, a universally popular Northern Ireland Secretary who helped restore power-sharing after almost three years of political deadlock, was dismissed on February 13.

Read More: "Reasonably close relationship with the DUP" expected from new NI Secretary of State

In a tweet, Smith said that it had been the "biggest privilege" to serve the people of Northern Ireland.  He thanked the people of Northern Ireland for their support over his short tenure, which lasted just over seven months. 

Serving the people of Northern Ireland has been the biggest privilege. I am extremely grateful to @BorisJohnson for giving me the chance to serve this amazing part of our country. The warmth & support from people across NI has been incredible. Thank you so much.

— Julian Smith MP (@JulianSmithUK) February 13, 2020

Sinn Féin's Michelle O'Neill, deputy First Minister of Northern Ireland, claimed that Smith's plans to set up a Historical Investigations Unit to investigate British soldiers and members of the Royal Ulster Constabulary (RUC) contributed to his dismissal. 

O'Neill said that reports that Smith had been replaced because he intended to introduce legislation to investigate legacy killings during the Troubles were "very concerning for victims of the conflict and their families." 

Smith's 'New Decade, New Approach' promised to introduce legislation within 100 days. 

"The British government has already dragged this process out for more than five years, delaying the publication of legislation again and again," O'Neill said. 

"Some victims have been waiting up to five decades for truth and disclosure."

Read more: The Economist publication says Irish unification becoming likely

Boris Johnson was the subject of ridicule from politicians in Northern Ireland for replacing Smith with Lewis as part of a cabinet reshuffle. 

Colum Eastwood, of The Social Democratic and Labor Party (SDLP), said that the British Prime Minister's decision was an error of judgment. 

“It defies belief that after the successful restoration of powersharing following a three-year collapse, Julian Smith’s reward is a cabinet office P45,” Eastwood said to the Irish Times. 

Julian Smith and Leo Varadkar.

Julian Smith and Leo Varadkar.

Irish Taoiseach Leo Varadkar said that Smith was "one of Britain’s finest politicians of our time" for his efforts to restore power-sharing, introduce marriage equality and avoid a hard border between Northern Ireland and the Republic. 

Brandon Lewis, Smith's successor, said that this was an "exciting time" for Northern Island and that he planned to build on Smith's legacy. 

Lewis has been an MP since he was first elected in 2010 and visited the Northern Irish border in 2018 to learn about the potential impact of Brexit on the people of Northern Ireland. 

Read more: Northern Ireland unanimously rejects Britain’s Brexit deal