What was the original purpose of Tower London?

The Tower of London was originally built as a royal palace by William the Conqueror in the late 11th century. It served as the primary residence of the English monarchy until the late 16th century when it was replaced by Whitehall Palace. Additionally, the Tower was used as a fortress, a prison, a treasury, an armoury, a menagerie, and a place of execution.
Copyright Wanderlust World © https://www.ynyoo.com