AbstractThe story of the Somnath temple, in the northwestern Saurashtra peninsula, has often been taken as an example of the contentious legacies of the penetration, settlement, and political establishment of Muslims in India. Its history testifies to the complex relationship between history, heritage, and the consolidation of collective memories of past events and processes.This article focuses on two key moments in the temple's recent history: the retrieval of the Somnath gates by Lord Ellenborough in 1842 and the reconstruction of the temple between 1947 and 1951. At these two moments—one during colonial times and the other at the creation of the independent state—Somnath became the battlefield for questioning how the state should be positioned with regard to religious places, histories, symbols, and practices.While the temple was apparently dealt with as a tangible place of heritage, both episodes show how the value endowed upon the temple had far more complex meanings. The analysis proposed in this article ends with the reconstruction of the temple. This shows the way in which architects of independent India addressed the country's history, directly or indirectly engaging with the construction of a heritage for the new state. Their efforts aimed to strengthen a shared memory of the past, which could in turn consolidate membership and a sense of belonging to the new nation. Advocates and promoters of the temple's reconstruction, among whom were Vallabhbhai Patel and K. M. Munshi, envisioned that the reconstruction would embody the long-awaited liberation of India from centuries of continuous domination by ‘foreign’ powers. In contrast, secular politicians, with Nehru at the helm, opposed the reconstruction, fearing that Somnath might become the symbol of a sectarian vision of the nation and, in the wake of partition, derail efforts to characterise independent India as an inclusive country. While the reconstruction did eventually take place, the entire episode invites us to question the relationship between the framing of Indian nationalism and the heritagisation of Indian history. Following a critical theoretical approach to Heritage studies, where heritage has less to do with the item that is preserved than with the value with which it is endowed, this article proposes to investigate the meanings that heritage preservation, conservation, and reconstruction acquired as part of the project of nation- and state-building.