As I'm reading the history of the Western Mediterranean about this period, I found many references to a truce between the Ottomans and Habsburg Spain in 1580.
For example, Wikipedia - Habsburg Spain:
Philip lacked the resources to fight both the Netherlands and the Ottoman Empire at the same time, and the stalemate in the Mediterranean continued until Spain agreed to a truce in 1580.
After Spain had sent an embassy to Constantinople in 1578 to negotiate a truce, leading to a formal peace in August 1580, the Regency of Algiers was a formal Ottoman territory, rather than just a military base in the war against Spain
Looking at this box, it seems that the truce was observed. There is no major engagement in the Mediterannean until 1613, despite a lot of battles listed before 1580. Coincidentally, at this time the Ottomans were busy with Persia and Spain with the Dutch and England, so this truce must have been convenient for them.
However I can't find any details about this truce. Is there a formal name for it? At what level was it agreed, e.g. was it agreed between the monarchs? What are the terms of the truce, were there any territorial exchange or delineation? Are there other arrangement (e.g. payments, promise to support or not support other powers)? And how long did it eventually last?