Ezekiel 23:7
Thus she committed her whoredoms with them, with all them that were the chosen men of Assyria, and with all on whom she doted: with all their idols she defiled herself. Thus she committed her whoredoms with them, with all them that were the chosen men of Assyria, and with all on whom she doted: with all their idols she defiled herself.
In symbolic prophecy a woman represents a church, a company of people called out and united for a spiritual purpose, whether good or evil, so the corrupt woman stands for a corrupt church. The lewd women portrayed in the chapter are Samaria and Jerusalem, that is backsliding Israel and Judah in their dreadful sins. The whoredom is spiritual unfaithfulness and apostasy, forsaking God and turning from the worship of Jehovah to seek help from other powers through unlawful union with idolatrous or false religious groups.
In history this meant doting on the chosen men of Assyria, and also on the Babylonians, and defiling herself with all their idols. Spiritually it means a church joined to Christ by covenant sealed by his blood and solemn vow breaking that marriage to become friend and follower of the world, as a wife departing from her husband to take strangers. It means heeding the allure of Babylon and following the voice of Satan to become his bride alongside sister Babylon, setting up prominent places at main roads and in streets, casting off the precepts of God which is casting off God, so that her life and Babylon's become one.
That union produces the wine of Babylon, a drunken and immoral life lived under statutes that are not good and judgments that give no life, leaving Zion intoxicated though not with wine and Israel fallen, and as a false and evil church she ensnares souls and corrupts the nations of earth. The chapter foretells Jerusalem's judgment under Babylon, when the king of Babylon would come against the city and the diadem would be removed from Israel's profane and wicked prince as the kingdom was overturned until the rightful ruler should come, a prophecy dated to 593 BC. The same principle applies to churches seeking union with civil power.
The verse does not refer merely to organizing a church under civil laws for temporal concerns. The verse sets forth searching moral instruction under the figure of a lewd woman and for that reason is best read in private, although some passages of its chapter may properly be read anywhere.