According to György Györffy's theory of place names, after the Hungarians conquered the Carpathian Basin, they retained a semi-nomadic lifestyle, changing pastures between winter and summer. Árpád's winter quarters -clearly after his occupation of Pannonia in 900- were perhaps in Pécs. Later, when the Comitatus of Baranya was established, the capital of the comitatus was not Pécs but a nearby castle, Baranyavár ("Baranya Castle".) Pécs, however, became an important religious centre and episcopal seat. In Latin documents, the city was mentioned as "Quinque Ecclesiae". Around 1000, the area was inhabited by the Black Magyars. The Deed of Foundation of the Diocese of Pécs was issued in 1009.