The Taj Mahal is not a castle. It is a mausoleum—specifically, a domed white marble tomb complex—built by Mughal Emperor Shah Jahan (1632–1648) for his beloved wife Mumtaz Mahal.
While its fortified appearance (walls, gates, towers) may suggest a palace or fortress, its sole purpose was funerary and commemorative. It represents the pinnacle of Mughal funerary architecture.