In 1578 Abd al-Malik fought a battle against the Portuguese in which he lost his life, however the outcome of the battle was an immense victory. Abd al-Malik was succeeded by his brother Ahmad al-Mansur who formally recognised the suzerainty of the Ottoman Sultan at the beginning of his reign while remaining de facto independent, however Ahmad stopped minting coins in Murads name, dropped Murads name from the Khutba and declared his full independence in 1582.