Kyoto was Japan's capital and the emperor's residence from 794 until 1868. Over the centuries, Kyoto was destroyed by many wars and fires, but due to its historic value, the city was dropped from the list of target cities for the atomic bomb and spared from air raids during World War II. Countless temples, shrines and other historically priceless structures survive in the city today. There remain many temples and shrines in Kyoto that were built during this long period. Seventeen historic sites including, Kiyomizu Temple and Nijo Castle, are inscribed as World Cultural Heritage Sites.