Málaga was the second largest city of the Emirate after the capital and its most important Mediterranean port, without which "Granada was no more than an isolated mountain-
girt city", according to historian
L. P. Harvey. As it had been reoccupied after a rebellion lasting more than a decade, governing the city posed a difficult challenge and Abu Said was likely chosen because of his administrative experience in addition to his father's previous tenure there. According to Rubiera Mata, Abu Said "would brilliantly overcome" these challenges. With his
katib (secretary) Ibn Isa, he implemented policies—with both firmness and gentleness, according to the near-contemporary historian
Ibn al-Khatib—which eventually won over the people of Málaga and improved economic conditions. He also became rich from the tax revenues of the region. He embarked on the project of constructing large ships in Málaga, to which Rubiera Mata attributes "the great power of the Nasrid fleet in the following years". He maintained high personal prestige due to his standing in the royal family as well as his administrative and military accomplishments, and began receiving dedications in works of literature. Ibn al-Khatib reported that he cared for his son Ismail, who enjoyed "the favour of his father" (''ni'mat abihi''). He also had a younger son, named Muhammad, whose birth date is unknown. Nasrid governors not only enjoyed administrative power over their regions, but were also the commander of the regional army. Málaga's troops under Abu Said's command were instrumental in Muhammad II's
war against the Marinid Sultanate and in returning various outposts of the Marinids on the
Iberian Peninsula to Granadan rule. He conducted vital military campaigns, principally in the area near the
Straits of Gibraltar, including
Algeciras,
Gibraltar, and
Tarifa. In 1295–1296, he led an unsuccessful campaign to suppress a rebellion in
Ronda. The rebellion finally ended when
Abu Abdallah ibn al-Hakim, the
katib of Muhammad II and a brother of the city's rebellious leader, was sent to negotiate. Muhammad II died in 1302 and was succeeded by his son
Muhammad III, Abu Said's brother-in law. According to near-contemporary historian
Ibn Khaldun, Abu Said had the complete trust of the Sultan, who kept him as governor of Málaga throughout his reign. Abu Said was responsible for the 1306 conquest of
Ceuta, on the North African shore, in the name of Muhammad III. Partly by the instigation of Abu Said's agents, the city had rebelled against their Marinid overlords in 1304 and was henceforth ruled by the
Banu al-Azafi, a local noble family. However, on 12 May 1306 a Granadan fleet led by Abu Said arrived, was welcomed by local supporters and took over the city without a fight. The conquest of Ceuta gave Granada strategic control over both sides of the
Straits of Gibraltar, but so alienated its neighbours that soon the Marinids,
Aragon and
Castile—its three larger neighbours—formed an alliance against Granada. == Rebellion ==