By that time, the complex housed three temples on Tell Baalbek: one to Jupiter Heliopolitanus (Baʿal), one to Venus Heliopolitana (Ashtart), and a third to Bacchus.
On a nearby hill, a fourth temple was dedicated to the third figure of the Heliopolitan Triad, Mercury (Adon or Seimios).
After Buri's murder, Muhammad successfully defended himself against the attacks of his brothers Ismaʿil and Mahmud.
Following his brothers' murders, Muhammad was able to take Damascus in 1138 and gave Baalbek to his vizier Unur.
What repression there was did not always target the Christian community per se.
The Shiite ‘Usayran family, for example, is also said to have left Baalbek in this period to avoid expropriation by the Harfushes, establishing itself as one of the premier commercial households of Sidon and later even serving as consuls of Iran.
Muslims from the surrounding area gathered, however, and entered the castle through a secret passageway shown to them by a local. When as-Salih Ayyub's successor Turan Shah was murdered in 1250, al-Nasir Yusuf, the sultan of Aleppo, seized Damascus and demanded Baalbek's surrender.
The site of the present Temple of Jupiter was probably the focus of earlier worship, as its altar was located at the hill's precise summit and the rest of the sanctuary raised to its level.
In Islamic mythology, the temple complex was said to have been a palace of Solomon's, Baalbek (under its Hellenic name Heliopolis) formed part of the Diadochi kingdoms of Egypt & Syria.
Later in the same year, however, Qutuz, the sultan of Egypt, defeated the Mongols and placed Baalbek under the rule of their emir in Damascus.
In recognition of their prominence among the Shiites of the Beqaa Valley, the Ottomans awarded the sanjak of Homs and local iltizam concessions to Baalbek's Harfush family.