In 1802 Ranjit Singh, aged 22, took Amritsar from the Bhangi Sikh "misl", paid homage at the Harmandir Sahib temple, which had previously been attacked and desecrated by the invading Afghan army, and announced that he would renovate and rebuild it with marble and gold.