A temple (from the Latin word templum) is a structure reserved for religious or spiritual activities such as prayer and sacrifice. A templum constituted a sacred precinct as defined by a priest, or augur. It has the same root as the word "template," a plan in preparation of the building that was marked out on the ground by the augur. Templa also became associated with the dwelling places of a god or gods. Despite the specific set of meanings associated with the religion of the ancient Rome, the word has now become quite widely used to describe a house of worship for any number of religions and is even used for time periods prior to the Romans.
Hindu temples are called by many different names, varying on region and language, including mandir, mandira, ambalam, gudi, kavu, koil, kovil, déul, raul, devasthana and devalaya.
The Sumerian term É.GAL ("palace", literally "big house") denoted a city's main building.
É.LUGAL ("king's house") was used synonymously. In the texts of Lagash, the É.GAL is the center of the ensi's administration of the city, and the site of the city archives.
Sumerian É.GAL "palace" is the probable etymology of Semitic words for "palace, temple", such as Hebrew היכל heikhal, and Arabic هيكل haykal. It has thus been speculated that the word É originated from something akin to *hai or *ˀai, especially since the cuneiform sign È is used for /a/ in Eblaite.
The term temen appearing frequently after É in names of ziggurats is translated as "foundation pegs", apparently the first step in the construction process of a house; compare, for example, verses 551–561 of the account of the construction of E-ninnu:
Temen has been occasionally compared to Greek temenos "holy precinct", but since the latter has a well established Indo-European etymology (see temple), the comparison is either mistaken, or at best describes a case of popular etymology or convergence.