Why was the Tower of London Built?

The Tower of London was originally built as a fortress to defend the crown. It was also used as a prison and as an execution site. I would love to visit the Tower of London.