Though the main royal residence of the medieval Kings of England was always their palace at Westminster, the Tower of London was from the time of its construction by William I an alternative royal residence and particularly a refuge for them in times of crisis.