when did ireland gain its independence from britain
History of Ireland Unwilling to negotiate any understanding with Britain short of complete independence, the Irish Republican Army, the army of the newly declared Irish Republic, waged a guerilla war (the Irish War of Independence) from 1919 to 1921. In the course of the fighting and amid much acrimony, the Fourth Government of Ireland Act 1920 implemented Home Rule while separating the island into what the British government's Act termed "Northern Ireland" and "Southern Ireland". In July 1921 the Irish and British governments agreed to a truce that halted the war. In December 1921 representatives of both governments signed an Anglo-Irish Treaty. The Irish delegation was led by Arthur Griffith and Michael Collins. This abolished the Irish Republic and created the Irish Free State, a self-governing Dominion of the Commonwealth of Nations in the manner of Canada and Australia. Under the Treaty, Northern Ireland could opt out of the Free State and stay within the United Kingdom: it promptly did so. In 1922 both parliaments ratified the Treaty, formalising independence for the 26-county Irish Free State (which renamed itself Ireland in 1937, and declared itself a republic in 1949); while the 6-county Northern Ireland, gaining Home Rule for itself, remained part of the United Kingdom. For most of the next 75 years, each territory was strongly aligned to either Catholic or Protestant ideologies, although this was more marked in the six counties of Northern Ireland.
Ireland Act 1949 This status quo remained, with Ireland participating little in the British Commonwealth and Éamon de Valera remarking in 1945 that "we are a republic" in reply to the question if he planned to declare Ireland as a republic. Then somewhat unexpectedly in 1948, during a visit to Canada, Taoiseach John A. Costello announced that Ireland was to be declared a republic. The subsequent Irish legislation, the Republic of Ireland Act 1948, provided for the abolition of the last remaining functions of the King in relation to Ireland and provided that the President of Ireland would exercise these functions in the King's place. When the Act came into force on 18 April 1949, it effectively ended Ireland's status as a British dominion. As a consequence of this, it also had the effect of ending Ireland's membership of the British Commonwealth of Nations and the existing basis upon which Ireland and its citizens were treated in the United Kingdom and other Commonwealth countries as "British subjects", not foreigners.