Title: Ireland–United Kingdom relations
Content:  19th century violent and constitutional campaigns for autonomy or independence culminated in an election in 1918 returning almost 70% of seats to Sinn Féin, who declared Irish independence from Britain and set up a parliament in Dublin, and declared the independence of Ireland from the United Kingdom. A war of independence followed that ended with the Anglo-Irish Treaty of 1922, which partitioned Ireland between the Irish Free State, which gained dominion status within the British Empire, and a devolved administration in Northern Ireland, which remained part of the UK. In 1937, Ireland declared itself fully independent of the United Kingdom.
Title: History of the British Isles
Content:  members of the Irish House of Commons. This brief period of limited independence came to an end following the Irish Rebellion of 1798, which occurred during the British war with revolutionary France. The British government's fear of an independent Ireland siding against them with the French resulted in the decision to unite the two countries. This was brought about by legislation in the parliaments of both kingdoms and came into effect on 1 January 1801. The Irish had been led to believe by the British that their loss of legislative independence would be compensated for with Catholic Emancipation, i.e. by the removal of civil disabilities placed upon Roman Catholics in both Great Britain and Ireland. However, King George III was bitterly opposed to any such Emancipation and succeeded in defeating his government's attempts to introduce it.
Title: British rule in Ireland
Content:  British rule in Ireland began with the Anglo-Norman invasion of Ireland in 1169. Since 1169, there has been continuous political resistance to British rule, as well as a series of military campaigns intended to force a British withdrawal. Most of Ireland gained independence from Great Britain following the Anglo-Irish War as a Dominion called the Irish Free State in 1922, and became a fully independent republic following the passage of the Republic of Ireland Act in 1949. Northern Ireland still remains part of the United Kingdom as a constituent country.
Title: United Kingdom of Great Britain and Ireland
Content:  A brief period of limited independence for Ireland came to an end following the Irish Rebellion of 1798, which occurred during the British war with revolutionary France. The British government's fear of an independent Ireland siding against them with the French resulted in the decision to unite the two countries. This was brought about by legislation in the parliaments of both kingdoms and came into effect on 1 January 1801. The Irish had been led to believe by the British that their loss of legislative independence would be compensated with Catholic emancipation, that is, by the removal of civil disabilities placed upon Roman Catholics in both Great Britain and Ireland. However, King George III was bitterly opposed to any such Emancipation and succeeded in defeating his government's attempts to introduce it.
Title: Postcolonialism
Content:  U.K., then mostly independent again Ireland's membership of and support for the European Union has often been framed as an attempt to break away from the United Kingdom's economic orbit. Ireland experienced centuries of English/British colonialism between the 12th and 18th centuries - notably the Statute of Drogheda, 1494, which subordinated the Irish Parliament to the English (later, British) government - before the Kingdom of Ireland merged with the Kingdom of Great Britain on 1 January 1801 as the United Kingdom. Most of Ireland became independent of the U.K. in 1922 as the Irish Free State, a self-governing dominion of the British Empire. Pursuant to the Statute of Westminster, 1931 and 
Title: Ireland
Content:  During its first decade, the newly formed Irish Free State was governed by the victors of the civil war. When de Valera achieved power, he took advantage of the Statute of Westminster and political circumstances to build upon inroads to greater sovereignty made by the previous government. The oath was abolished and in 1937 a new constitution was adopted. This completed a process of gradual separation from the British Empire that governments had pursued since independence. However, it was not until 1949 that the state was declared, officially, to be the Republic of Ireland. The state was neutral during World War II, but offered clandestine assistance to 
Title: History of the United Kingdom
Content:  and in the December 1918 General Election Sinn Féin won a majority of Irish seats. Its MPs refused to take their seats at Westminster, instead choosing to sit in the First Dáil parliament in Dublin. A declaration of independence was ratified by Dáil Éireann, the self-declared Republic's parliament in January 1919. An Anglo-Irish War was fought between Crown forces and the Irish Republican Army between January 1919 and June 1921. The war ended with the Anglo-Irish Treaty of December 1921 that established the Irish Free State. Six northern, predominantly Protestant counties became Northern Ireland and have remained part of the United Kingdom ever since, despite demands of the Catholic minority to unite with the Republic of Ireland. Britain officially adopted the name "United Kingdom of Great Britain and Northern Ireland" by the Royal and Parliamentary Titles Act 1927.
Title: Irish issue in British politics
Content:  In 1937, taking advantage of the Edward VIII abdication crisis and the Statute of Westminster 1931, the Irish Free State distanced itself further from the United Kingdom, changing its name to "Ireland" (or, in Irish, "Éire"). A trade war took place in the 1930s; as part of the settlement in 1938, the British were no longer allowed access to three naval ports. Ireland declared itself neutral in the Second World War. In 1948, Ireland declared itself a republic and so left the British Commonwealth. Britain's political interest in this part of the island formally ceased with its passage of the Ireland Act 1949 at Westminster. Nevertheless, the two states co-operated formally and informally to try to resolve the Troubles in Northern Ireland. The (failed) Anglo-Irish Agreement (treaty) of 1985 and the British-Irish treaty element of the Good Friday Agreement of 1998 are the more important of these.
Title: Ireland
Content:  materially disadvantage the Catholic majority and Protestant dissenters, and was extended during the 18th century. With the Acts of Union in 1801, Ireland became a part of the United Kingdom. A war of independence in the early 20th century was followed by the partition of the island, thus creating the Irish Free State, which became increasingly sovereign over the following decades, and Northern Ireland, which remained a part of the United Kingdom. Northern Ireland saw much civil unrest from the late 1960s until the 1990s. This subsided following the Good Friday Agreement in 1998. In 1973, the Republic of Ireland 
Title: Military history of Ireland
Content:  Until 1922 secret societies, popular risings and guerrilla warfare came in sporadic outbreaks in attempts to end the 1801 union of Ireland and Great Britain. Between 1919 and 1922 the War of Independence brought the negotiation of the Anglo-Irish Treaty and the majority of Ireland seceded from the United Kingdom to form an independent state, which immediately fell into a civil war between opposing republican factions. The northern portion of the country would form Northern Ireland becoming an autonomous part of the United Kingdom. After the Irish Free State gained a new constitution in 1937, the now fully sovereign nation was steered towards neutrality in the event of any war involving the United 

Question: when did ireland gain its independence from england?
Answer: In 1922.
1922.