Dublin Castle off Dame Street, Dublin, Ireland, was until 1922 the seat of the United Kingdom government's administration in Ireland, and is now a major Irish government complex. Most of it dates from the 18th century, though a castle has stood on the site since the days of King John, the first Lord of Ireland.

Dublin Castle was first founded as a major defensive work by Meiler Fitzhenry on the orders of King John of England in 1204, some time after the Norman invasion of Ireland in 1169, when it was commanded that a castle be built with strong walls and good ditches for the defence of the city, the administration of justice, and the protection of the King's treasure.

Largely complete by 1230, the castle was of typical Norman courtyard design, with a central square without a keep, bounded on all sides by tall defensive walls and protected at each corner by a circular tower. Sited to the south-east of Norman Dublin, the castle formed one corner of the outer perimeter of the city, using the River Poddle as a natural means of defence along two of its sides. The city wall directly abutted the castle's northeast Powder Tower, extending north and westwards around the city before rejoining the castle at its southwestern Bermingham Tower.

More Info: en.wikipedia.org