Source
Lord of the flies; a god of the Philistines, popularly worshiped as the destroyer of flies, to whom was erected a temple at Ekron. The mythical zoology of the ancients points directly to an inner and mystical significance: "flies" is used not in the sense of the insect, but for a certain class of elementals whose "flying" around and through the earth is governed directly by lunar influences. Thus Beelzebub is in this connection a lunar divinity.
Ba`al-zebul, a form in the Old and New Testaments, is translated as Lord of the High House or Lord of the Habitation, the reference here being to the moon as the habitation or receptacle of these elemental souls at a certain time of their existence.
Source: New International Version
Matthew 12:2: “But when the Pharisees heard this, they said, "It is only by Beelzebub, the prince of demons, that this fellow drives out demons."
Matther 12:27 “And if I drive out demons by Beelzebub, by whom do your people drive them out? So then, they will be your judges.”
2 Kings 1:2 “Now Ahaziah had fallen through the lattice of his upper room in Samaria and injured himself. So he sent messengers, saying to them, "Go and consult Baal-Zebub, the god of Ekron, to see if I will recover from this injury."“
Source
The city of Ekron (Hebrew עֶקְרוֹן, Standard Hebrew ʻEqron, Tiberian Hebrew ʻEqrôn) was one of the five Philistine cities in southwestern Canaan. It was a border city on the frontier contested between Philistia and Judah, at a site, now Tel Mikne, near the small village Akir, some 35 kilometers southwest of Jerusalem, and 11 miles north of Gath, on the western edge of the inner coastal plain. Excavations in 1981-1996 at the low square tel, have made Ekron one of the best-documented Philistine sites.
Source
Marduk [mär'dook] (Sumerian spelling in Akkadian AMAR.UTU "solar calf"; Biblical Merodach) was the name of a late generation god from ancient Mesopotamia and patron deity of the city of Babylon, who, when Babylon permanently became the political center of the Euphrates valley in the time of Hammurabi (18th century BC), rose to the position of the head of the Babylonian pantheon.
As I looked more into this, their seem to be claims made by people that during the Reign of Hammurabi that this place was built -however, there is no evidence given which makes it conclusive. In fact, there seem to be no documented records of it existing for the purpose of a God whose popularity only began to rise during the period of conquest which was going on and brings into question why two temples [Esagila] would also be built. To me it seems almost seems as though they have evidence one [near the other] was built for this purpose and thus they link them both together.
I myself propose that this Temple was actually built before the Babylonian’s took control of the region and that this was the fertile region which Ba’al ZeBul once ruled over. I also have began to believe that Ba’al ZeBul like so many people of the era wasn’t a God but actually a person on Earth and from the Region going as far as to think he might have been their ruler and like so many of the time associated himself with a God.
Once the region began to prosper [several years] word could have spread and the tales of this person could have spread resulting in the fables changing. From him not being a ruler who claimed to be a God, but a God who is currently guiding his people. Over time and a lack of written records [primarily around the Temple] the story has changed and like so many other early religions those that were worshipped have been distorted by more modern religions.



(not trying to be harsh, just like the analogy)