Northern Ireland was formed at the same time as what is now known as the Republic of Ireland. Initially it was the Irish Free State. Prior to this, Ireland was a single entity. In 1922 they became separate. The Republic of Ireland didn't officially become a republic until 1948. That had no impact on Northern Ireland, as it was already in existence by then.