Soon, more wars broke out (Austro-Turkish War (1716–1718), Austro-Turkish War (1737–1739)) and the clergy supported the Austrian side. As Serbia remained under the Ottoman rule after 1739, as a result, the clergy and the local population fled to Austria, with almost all relics from the monastery because the monastery was destroyed once more. They settled in the Velika Remeta Monastery, in the Syrmia region. The Ottomans later allowed for a group of monks to return to Rakovica. On 14 September 1739, the merger of Rakovica and Veliki Remeta under one administration was proclaimed. However, as the two monasteries were in two different states, the union never came through and Rakovica continued as a sole monastery. In 1768 Amvrosije Janković painted numerous icons. The wars ended with the Austro-Turkish war of 1788–1791, when the monastery was destroyed again, as the clergy again supported Austrians, so the Ottomans burned it in retaliation, while the abbot of the monastery of that time, Sofronije, was hanged on the elm tree in front of the monastery. The process of slow renovation began.