Archaeological evidence, and particularly the design of the gun ports in the gatehouse and St. Margaret's Tower, which together with the curtain wall are the oldest parts of the castle, indicate that the castle was probably built in the late 15th century.