This was done in three major phases ending in 1702 .
The end result was an enclosed town capable of housing the island 's population for a long siege .
This was done in three major phases ending in 1702 and the end result was an enclosed town capable of housing the island 's population for a long siege .