The Swedish occupation of Olomouc from 1642 to 1650 led to total ruination of the library. Everything that had any value was stolen (including codices made under the patronage of the Bishop of Olomouc Jindřich Zdíka), while the rest was destroyed. Altogether some 100 wagons fully loaded with books and scripts were dispatched to Sweden. As a result, Olomouc University's most precious relics are now in the National Library of Sweden in Stockholm. The library was nevertheless restored relatively rapidly after the Swedes left.