Swords Castle was built as the manorial residence of the first Anglo-Norman Archbishop of Dublin, John Comyn, around 1200 or a little later in Swords, just north of Dublin. The castle was never strong in the military sense, but is unusual in that the perimeter wall of 305 metres is far larger than normal for an Irish castle.  The walls enclose a large pentagonal walled area of nearly 6,000 m² (1.5 acres) with a tower on the north, probably the Constable's residence, and an impressive gateway complex on the south. Within the castle were the Archbishop's apartments, apartments for knights and a banqueting hall. The warder may have occupied the quarters to the left of the gate, while to the right was the janitor's room with the priest's room overhead. The adjoining chapel, built in the late 13th century, was probably used as the Archbishop's private oratory. Other buildings, recorded for an inquisition in 1326, have now vanished, including the great hall on the east side of the enclosure.
A monastic settlement attributed to St. Columba (or Colmcille) existed in Swords from the 6th century, which in the 12th century was brought under the control of the Archbishop of Dublin. In 1181 John Comyn succeeded Laurence O'Toole as Archbishop and it appears that he chose Swords at some point as his chief residence, probably because the prebend of Swords was of considerable wealth and was much sought after. The evidence is that he had a manor in Swords by 1192, as a patent was granted to him there on that date authorising him to hold an annual fair lasting a week on the feast day (June 9th) of St. Columba. It is generally accepted that the castle was then built around 1200 or a little later as the manorial residence of the Archbishop. The archbishop had his own seneschal at Swords and an ecclesiastical court was also held there. In 1216 the manor of Swords was granted to Henry de Loundres, the second English Archbishop, and it is recorded that in 1220 one William Galrote held the position of chief constable of the castle.
It appears that the Castle was occupied for the next hundred years by successive Archbishops of Dublin until Archbishop Alexander de Bicknor, who built a new Archiepiscopal palace at Tallaght in 1324. It appears by this stage that Swords Castle had been abandoned. The evidence for this is that in 1326 de Bicknor was accused of mishandling the treasury and the profits of his See were seized by the king and an inquisition held before the Sheriff of Dublin on 14 March 1326. The purpose of the inquisition was to ascertain the profits of the See, and as part of this a detailed description of Swords Castle was recorded. It is clear from this description that the Castle had fallen into disrepair. In all likelihood Swords was abandoned because of damage sustained during the Bruce campaign in Ireland of 1317, which was known to have devastated the country south from Dundalk to the gates of Dublin. Although there is no direct evidence that Swords Castle had been attacked by Bruce's forces, it was not well fortified enough to withstand assault, and the probability is that the Archbishop had removed himself to Tallaght for safety reasons.
It is doubtful if all the buildings of the Castle were ever repaired, but the stepped battlements suggest some form of occupancy during the 15th century, when it appears the castle was granted to retired Archbishops. There is no documentary evidence to show that any of them resided there however. Instead it seems that a portion at least of the castle was occupied by a constable during the 14th, 15th and early 16th centuries. As late as 1547 Thomas Fitzsimons of Swords was appointed constable, and subsequently the Barnewall family retained an interest in the constableship and tenancy of the Castle. But by 1583, when briefly occupied by Dutch Protestants, it was described as "the quite spoiled old castle". The viceroy, Sir Henry Sydney, had some of the building repaired for the use of the colony of Dutch weavers who he hoped might 'show some example of industry to the lazy natives'. 
During the 1641 Rebellion the castle was chosen as the rendezvous for the Anglo-Irish Catholic families of The Pale  On 9 December of that year they assembled under arms at the Castle in order to join the rebellion, but were attacked by Sir Charles Coote under orders of the Lords Justices. Coote put them to flight, chasing them out of their fortifications and killing two hundred of them. It is possible that some burials found during modern excavations of the castle relate to this incident.
Not much is known about the Castle after that, but an Ordnance Survey map of 1837 shows the grounds or Bawn of the Castle had been converted into a garden. After the Church of Ireland was disestablished in 1870 the castle was sold to the Cobbe family, who leased it to local shopkeeper Robert Savage. Savage turned the grounds of the castle into an orchard and sold the produce in his shop.  In the 1930s the site was placed under the guardianship of the Office of Public Works, and in 1985 Dublin County Council (later Fingal County Council) purchased the castle with a view to its restoration. 
The Parks Department of Fingal County Council carried out a number of studies, including a conservation study of the entire area, and in 1995 a plan was agreed by the Council for the long term phased restoration of the castle. In 1996 work commenced on the restoration of Constable's Tower, and this was completed in 1998. The restoration of the rest of the castle is still ongoing and when complete, Swords Castle is intended to become a tourist attraction. The newly renovated castle was used as a film location for the production of TV series The Tudors in spring 2010. Swords Castle and Courtyard is open to the public from Monday to Friday by appointment only by calling 00353 (0)1 890 5600.
- Fanning, Thomas, 'An Irish Medieval Tile Pavement: Recent Excavations at Swords Castle, County Dublin', Journal of the Royal Society of Antiquaries Vol. 105, (1975) , pp47 - 82
- Swords Castle - The Tudors Evening Herald
- Swords Castle - Visiting Information Fingal Tourism
- Swords Castle information
- History of Swords Castle from Swordsdublin.net
- Swords Castle Archaeology at Excavations.ie