Trostburg castle was probably built in the 12th century, though nothing is known of its early history. At some point in the 12th or early 13th century a junior line moved a short distance away and built Liebegg Castle near Gränichen. On 28 May 1241 Burkhart I of Trostberg and his relative Ludwig of Liebegg appear in a document as witnesses and unfree knights in service to the Counts of Kyburg. Eventually they passed from Kyburg service to Habsburg service. In 1317 a knight named Rudolf von Trostberg was the Habsburg vogt at Kyburg Castle.
Around the mid-14th century the Trostburg line died out. The castle and surrounding estates were inherited by the Lords of Rinach. In 1415 the city-state of Bern conquered the Aargau from the Habsburgs. The owner of the castle, Hans Rudolf von Rinach, kept his castle and lands, but was forced to accept Bernese authority and grant them a preeminent right to buy it. In 1486 the Schultheiss and council of Bern decided to sell Trostburg along with its lands and serfs to Hans von Hallwil, the victor of the Battle of Murten.
Under the Hallwil family, the castle was fortified and expanded with a chapel and residence hall (known as the Hallwil House) added on the northwest side of the site. It remained with the Hallwil family for 130 years. In 1616 Hugo von Hallwil moved to Bohemia and tried to sell the castle to the city of Brugg. Apparently fearing that Brugg was expanding its influence, the city of Bern quickly bought the castle and then sold it to a cooperative of wealthy Bernese citizens. Bern retained the rights to high justice and some income, which they transferred to Lenzburg Castle. Over the following century the castle fell into ruin except for the Hallwil House. In 1754 it was described as looking like a peasant's hovel.
In the 19th century found the castle converted into a music box factory. In the early 20th century it was partly rebuilt by a German butcher, but World War I prevented project completion. A large part of the western curtain wall collapsed in 1922. In 1933 it was acquired by another private owner who used the castle as his private residence. An archeological project in 1999 explored the history of the castle and also repaired and strengthened many of the walls.
The castle is located on the same line of hills on which Liebegg Castle stands and the remaining castle walls wrap around the local hill top. The bergfried is a square 6.6 meters on each side and about 7 meters tall. The hill falls away from the tower toward the north, with a courtyard south and west. West and north of the courtyard the ground slopes down toward the Hallwil House. The residence building is four stories tall with massive walls that are between 1–1.7 m thick.References:
The Palace of the Kings of Navarre of Olite was one of the seats of the Court of the Kingdom of Navarre, since the reign of Charles III 'the Noble' until its conquest by Castile (1512). The fortification is both castle and palace, although it was built more like a courtier building to fulfill a military function.
On an ancient Roman fortification was built during the reign of Sancho VII of Navarre (13th century) and extended by his successors Theobald I and Theobald II, which the latter was is installed in the palace in 1269 and there he signed the consent letter for the wedding of Blanche of Artois with his brother Henry I of Navarre, who in turn, Henry I since 1271 used the palace as a temporary residence. This ancient area is known as the Old Palace.
Then the palace was housing the Navarrese court from the 14th until 16th centuries, Since the annexation (integration) of the kingdom of Navarre for the Crown of Castile in 1512 began the decline of the castle and therefore its practically neglect and deterioration. At that time it was an official residence for the Viceroys of Navarre.
In 1813 Navarrese guerrilla fighter Espoz y Mina during the Napoleonic French Invasion burned the palace with the aim to French could not make forts in it, which almost brought in ruin. It is since 1937 when architects José and Javier Yarnoz Larrosa began the rehabilitation (except the non-damaged church) for the castle palace, giving it back its original appearance and see today. The restoration work was completed in 1967 and was paid by the Foral Government of Navarre.