The Royal castle of Děvín was obviously founded at the locality of a previous fortress in the middle of the 13th century. King Wenceslas II gave it to Jan of Michalovice in 1283.
During the 1359 - 1516 period it was (with several breaks) in the possession of the noble family from nearby Stráž (Vartemberk). Then it was purchased by the Biberštejn family who had it renovated. In 1645 it was damaged and burnt by Swedish troops, which is the end of its history.
References:House of the Blackheads (Melngalvju nams) is a building situated in the old town of Riga. The original building was erected during the first third of the 14th century for the Brotherhood of Blackheads, a guild for unmarried German merchants in Riga. Major works were done in the years 1580 and 1886, adding most of the ornaments.
The structure was bombed to a ruin by the Germans June 28, 1941 and the remains demolished by the Soviets in 1948. The current reconstruction was erected from 1995 to 1999. Today the House of Blackheads serves as a museum and sometimes concert hall.