A failed 1916 Easter Monday Rebellion touched off several years of guerrilla warfare that in 1921 resulted in independence from the UK for 26 southern counties ; six northern ( Ulster ) counties remained part of the UK .