The Morean War between the Republic of Venice and the Ottoman Empire, which had been ongoing since 1684, came to an end during Valier's reign as Doge, in January 1699.
However, on his death, with the Republic still embroiled in war and facing massive economic difficulties, Venetians decided to elect someone who was not very ambitious.
On 11 September 1697, Ottoman forces were defeated by troops of the Holy Roman Empire and the Kingdom of Hungary at the Battle of Zenta.
This decisive battle led to the Ottoman Empire's determination to end the Great Turkish War, and peace negotiations began at Sremski Karlovci.
The Republic was exhausted by the long war and facing economic distress, but little changed for Valier, and he continued hosting banquets, receptions, and parties at which he entertained persons of rank.
The tomb was designed by architect Andrea Tirali, and contained sculptures from Antonio Tarsia, Pietro Baratta, and others, and the bas relief was overseen by Gruppello Marino.