Secretary of State for Northern Ireland

The secretary of state for Northern Ireland (; ), also called the Northern Ireland secretary or SoSNI, is a secretary of state in the Government of the United Kingdom. They are in charge of the Northern Ireland Office. The Secretary is a member of the Cabinet of the United Kingdom. They are 17th in the ministerial ranking.
The works with the other Northern Ireland Office ministers. The shadow minister is the Shadow Secretary of State for Northern Ireland.
History.
Historically, the main ministers for Irish (and Northern Ireland) affairs in the UK Government were:
Scotland and Wales have had the Secretary of State for Scotland (1885) and Secretary of State for Wales (1964) for a long time but Northern Ireland did not have a Secretary. This was caused by the Government of Northern Ireland and Parliament of Northern Ireland. The office of Secretary of State for Northern Ireland was created after the Northern Ireland government (at Stormont) was suspended. The government was later ended after civil problems. The British government was worried that the Parliament of Northern Ireland was losing control of the situation. On 30 March 1972, the country was put under the direct rule of the british Parliamen. The Secretary of State replced three jobs from the previous government. These were: 
Direct rule was expected to last for only a short time. Sharing the pwer was preferred as the solution. It has been renewed by a vote in Parliament each year. The Sunningdale Agreement in 1973 created the Northern Ireland Executive from 1 January 1974. It was ended by the Ulster Workers' Council strike on 28 May 1974. The Northern Ireland Constitutional Convention (1975–1976) and Northern Ireland Assembly (1982–1986) could not restore the government. Following the Belfast Agreement (also known as the Good Friday Agreement) on 10 April 1998 removed many of the duties of the Secretary of State and the Northern Ireland Office.
Many of the powers of the Secretary have been given to the Northern Ireland Assembly and Northern Ireland Executive. The secretary of state in now limited to representing Northern Ireland in the UK cabinet and controling the operation of the administration. They are also in charge of several other areas. These include security, human rights, some public inquiries and elections.
The secretary of state officially lives in Hillsborough Castle. It was the official home of the governor of Northern Ireland. The castle is still a royal residence of the monarch in Northern Ireland.