During the occupation of Serbia by the Austrians (between 1717 and 1739), it was converted into a Roman Catholic church; but after the Ottomans retook Belgrade, it was returned to its original function.