Who is Beelzebub?
In the Bible, Baal-zebub is a god of the Philistine city of Ekron, consulted by King Ahaziah (2 Kings 1). In the New Testament, "Beelzebub" is the name the Pharisees give to "the prince of the devils" when they accuse Jesus of casting out demons by his power. In the Testament of Solomon, Beelzebub is the king of the demons whom Solomon controls with his ring.
The name Baal-zebub is usually translated as "lord of the flies". Many scholars think it is an Israelite pun mocking an original title, Baal-Zebul, "lord prince" or "lord of the dwelling".
In 2 Kings 1 the injured King Ahaziah sends to consult him, and the prophet Elijah rebukes him: "Is it not because there is not a God in Israel?".
In the Gospels, the Pharisees say that Jesus "doth not cast out devils, but by Beelzebub the prince of the devils" (Matthew 12:24). Jesus answers that "every kingdom divided against itself is brought to desolation": if Satan casts out Satan, his kingdom cannot stand.
In the Testament of Solomon, the demon Ornias, caught by the ring the archangel Michael gave the king, is sent to fetch Beelzebub, "who has kingly rule over the demons".
Beelzebub introduces himself as "the exarch of the demons", and Solomon forces him to bring the other spirits to work on building the Temple.