1561 he launched another expedition to re-occupy Tlemcen which failed, marking the end of Saadian attempts to expand eastward. To counter Ottoman and Spanish influence, Al-Ghalib sought to develop relations with France and Northern European powers. He also supported the Morisco uprisings in Spain between 1568 and 1570. In the end, Ottoman pressure on Morocco was reduced by their own defeat at the Battle of Lepanto in 1571. While Al-Ghalib was more passive in foreign policy and military ventures, he was a major builder at home in Marrakesh. Among other things, he built the Mouassine Mosque and the Ben Youssef Madrasa, redeveloped the royal palaces in the Kasbah, repaired the Kasbah Mosque, and started the Saadian Tombs. Fes became the second capital of the kingdom and the main military garrison in the north, where the heir apparent typically served as governor. Upon Abdallah al-Ghalib's death in 1574 his son Muhammad II al-Mutawakkil inherited the throne. Meanwhile, his uncle, Abd al-Malik, had worked to further secure Ottoman support. He served in the Ottoman army and won some favour by participating in the successful Ottoman Siege of Tunis in 1574, which expelled the Spanish forces there. That same year he travelled to Istanbul and obtained support for his bid to the Saadian throne from the Ottoman sultan Murad III himself. Soon afterwards the sultan ordered the beylerbey (governor) of Algiers, Ramazan Pasha, to assist Abd al-Malik in invading Morocco. In early 1576 the Ottoman army, including a contingent of Janissaries and a supplement of troops led by Abd al-Malik himself, won a decisive victory at the Battle of ar-Rukn near Fez, allowing Abd al-Malik to depose Al-Mutawakkil, who fled. Once on the throne, as an Ottoman vassal, Abd al-Malik had the Friday prayers and the khutba in mosques delivered in the Ottoman sultan's name, adopted Ottoman clothing, and organized his army along Ottoman lines with the help of Turkish officers. This made him the first Saadian ruler to accept vassal status with a foreign power. Nonetheless, Abd al-Malik remained wary of Ottoman motives towards his kingdom and maintained relations with Spain as well as continuing to pursue relations with France (King Henri III) and England (Queen Elizabeth). He also sent the majority of Ottoman troops who had helped him – including the Janissaries – back to Algiers shortly after winning his throne. Meanwhile, his deposed nephew, Al-Mutawakkil, sought help from Portugal, whose