Overview
Tripura, meaning three cities or fortresses, is described in Hindu history as being constructed by the great Asura architect Mayasura. They were great cities of prosperity, power and dominance over the world, but due to their impious nature, Maya's cities were destroyed by god Tripurantaka or Tripurari, an aspect of Shiva. The three cities were made of gold, silver and iron and were located on the heaven, earth and underworld respectively.
Legend
Penances of the sons of Taraka
Following the death of Tarakasura, who was killed by Kartikeya, his sons Tarakaksha, Vidyunmali and Veeravana undertook severe penances by which they pleased Brahma. They requested that they may become immortal. Resisting it, Brahma said to them that nothing can be immortal. Then Tarakaksha, Vidyunmali and Veeravana asked to be blessed with impregnable fortresses, which would be everlasting. However, as Brahma told them that nothing could be everlasting, they requested that the destruction of the cities could be brought about by a single arrow only, on the hope that it was impossible for anyone to shoot such an arrow, save Shiva, of whom they were great devotees. Brahma then blessed them that such fortresses would be constructed.
The construction of the three cities
The three cities which comprised Tripura were distributed thus:
The lowest, with walls of Iron, located in the underworld,
The second, with walls of silver, located on the earth, and
The third, with walls of gold, located in heaven.
From Wikipedia (CC BY-SA 4.0).