The Grand Prince Stephen was crowned on 25 December 1000 or 1 January 1001, becoming the first King of Hungary (1000–1038) and founder of the state. He unified the Carpathian Basin under his rule by 1030, subjugating the territories of the Black Magyars and the domains that had been ruled by (semi-)independent local chieftains ("e.g.", by the "Gyula" Prokuj, Ajtony). He introduced the administrative system of the kingdom, based on counties "(comitatus)", and founded an ecclesiastic organization with two archbishoprics and several bishoprics. Following the death of his son, Emeric (2 September 1031), King Stephen I assigned his sister's son, the Venetian Peter Orseolo as his heir which resulted in a conspiracy led by his cousin, Vazul, who had been living imprisoned in Nyitra (today "Nitra" in Slovakia). Vazul was blinded on King Stephen's order and his three sons (Levente, Andrew and Béla) were exiled.