In ancient Greek culture, temples served as shelters for deities, often housing cult statues. A prototype for these Greek temples is often traced back to the royal throne rooms, called megarons, of the Mycenaean civilization, often associated with the heroic age described in oral traditions eventually set down as the Homeric epics.
Ancient Mycenae (22 mins.):
“Building the Ancient City: Athens” (BBC, 2015, excerpt, 7 mins.):