Toompea Castle is situated on the steep limestone hill in the central part of Tallinn. The first wooden castle is believed to have been built on the hill in either the 10th or 11th century by residents of the ancient Estonian county of Rävala. It was probably one of the first inhabited areas of what later became Tallinn. In 1219, the castle was taken over by Danish crusaders - led by Valdemar II. According to a legend very popular among Danes, the very first flag of Denmark (Dannebrog) fell from the sky during a critical stage of the Battle of Lyndanisse, fought near the castle, resulting in Danish victory over Estonians. The current castle is mainly constructed in the 13th and 14th centuries.
The castle is one of the most potent symbols of the reigning power, which over the centuries has been conquered by various nations. According to the Altmark peace treaty of 1629, Estonian territories went to the king of Sweden. In 1583–1589 a new ceremonial building, the State Hall building, was erected on Toompea. It was located against the western wall between Tall Hermann tower and the convent building.
In 1710 the ownership of Toompea went from the Swedes to the Russian Czarist Empire. The Russian Empress Catherine the Great ordered the construction of the Estonian Government Administration building in the east side of the fortress; it was completed in 1773.
On 24 February 1918, Estonia became an independent state. From 1920 until 1922, according to the plans of the architects Eugen Habermann and Herbert Johansen, the building of the Parliament (Riigikogu) was built in the castle courtyard. The expressionist design of the building makes it unique among the parliament buildings of the world. In 1935, the palatial south wing was built on the south side, copying the style of the Government Administration building, and the Governor's Garden was laid out in appropriate design.
The Toompea castle and the surrounding old town are is one of the best preserved medieval cities in Europe. Nineteen of the original sixty six defense towers are survived. The old town is in the list of UNESCO World Heritage Sites. The castle is open to the public with no charge. There are also guided services available.
The Temple of Portunus or Temple of Fortuna Virilis ('manly fortune') is one of the best preserved of all Roman temples. Its dedication remains unclear, as ancient sources mention several temples in this area of Rome, without saying enough to make it clear which this is.
The temple was originally built in the third or fourth century BC but was rebuilt between 120-80 BC, the rectangular building consists of a tetrastyle portico and cella, raised on a high podium reached by a flight of steps, which it retains.
The temple owes its state of preservation to its being converted for use as a church in 872 and rededicated to Santa Maria Egyziaca (Saint Mary of Egypt). Its Ionic order has been much admired, drawn and engraved and copied since the 16th century. The original coating of stucco over its tufa and travertine construction has been lost.