Vatican City was established before 1930 .
Since the return of the Popes from Avignon in 1377 , they have generally resided at the Apostolic Palace within what is now Vatican City , although at times residing instead in the Quirinal Palace in Rome or elsewhere .