From 831 to 1072 the city was under Arab rule during the Emirate of Sicily when the city first became a capital.