Complex sentence: The castle was the county seat and administrative centre until the shiring of Wicklow county in the 16th century when it moved to Wicklow Town after the castle was again raided.
Split into simpler sentences: The castle was the administrative centre of the area until the shiring of Wicklow in the 16th century. The county seat then moved to Wicklow town after the castle was again raided.