This ended in 1921 with the signing of the Anglo-Irish Treaty , which established the division of Ireland . Following the signing in 1921 of the Anglo-Irish Treaty , which ended the War of Independence , a split occurred within the IRA .