The Castle of Guimarães was built under the orders of Mumadona Dias in the 10th century to defend the monastery from attacks by Moors and Norsemen. At the end of the 11th century the castle was heavily expanded and remodeled, under the direction of Count Henry, to act as his residence. The castle became the official royal residence from 1139, when Portugal became independent from the Kingdom of León, until circa 1200.
Between the end of the 13th and beginning of the 14th century, the castle was remodelled by King Denis, resulting in the form that stands to this day. In 1369, King Henry II of Castile invaded Portugal and encircled the castle of Guimarães, but was defeated by its population and forces. Sometime between 1383 and 1433, the two towers that flank the main entrance were order built by King John I of Portugal.
After the castle's demolition was abandoned in the 19th century, many of the houses, estates and lodgings around the castle were expropriated. The first attempts at restoration occurred during the mid-20th century.
Today Guimarães castle area is delineated by walls forming a pentagram, similar to a shield, that includes eight rectangular towers, military square and central keep. Originating in the foundations of a Roman structure, from the writings of Alfredo Guimarães, it was later elaborated on the French model, in its current the form of a shield, with reduced central yard and difficult accesses. It includes several Gothic characteristics, owing to its remodelling at the end of the 13th century, when the keep and residences were constructed (possibly over pre-existing structures).
References:The Clementinum is a historic complex of buildings in Prague. Until recently the complex hosted the National, University and Technical libraries, the City Library also being located nearby on Mariánské Náměstí. The Technical library and the Municipal library have moved to the Prague National Technical Library at Technická 6 since 2009. It is currently in use as the National Library of the Czech Republic.
Its history dates from the existence of a chapel dedicated to Saint Clement in the 11th century. A Dominican monastery was founded in the medieval period, which was transformed in 1556 to a Jesuit college. In 1622 the Jesuits transferred the library of Charles University to the Klementinum, and the college was merged with the University in 1654. The Jesuits remained until 1773, when the Klementinum was established as an observatory, library, and university by the Empress Maria Theresa of Austria.