Republic of Ireland–United Kingdom border
Originally intended as an internal boundary within the United Kingdom of Great Britain and Ireland, the border was created in 1921 under the United Kingdom Parliament's Government of Ireland Act 1920. Prior to this, a separatist Irish parliament had been established in Dublin, which did not recognise the Government of Ireland Act, and was actively engaged in the Irish War of Independence. The Act was intended to deliver Home Rule in Ireland, with separate parliaments for Southern Ireland (which included three of the nine counties of Ulster) and Northern Ireland. Six of the thirty-two counties of Ireland were assigned to Northern Ireland, and the rest of Ireland comprising 26 counties to Southern Ireland.
Irish Republic
The War of Independence ended with the Anglo-Irish Treaty, signed on 6 December 1921 and narrowly approved by Dáil Éireann on 7 January 1922. A Provisional Government was set up under the terms of the treaty, but the Irish Republic nominally remained in existence until 6 December 1922, when 26 of the island's 32 counties became a self-governing British Dominion called the Irish Free State. The island had been partitioned by the Government of Ireland Act 1920, and the six counties of Northern Ireland exercised their right under the Treaty to opt out of the Free State, and remain in the United Kingdom.