The prophet again took the role of a prosecuting attorney. A prosecuting attorney is a person who brings charges against someone in court. His task was to confront Jerusalem with her sins (detailed in Ezekiel 22).
Jerusalem and Samaria were supposed to be holy cities, set apart for God. Instead, they had become like worn-out prostitutes. This picture shows that they had been unfaithful to God. Their only attraction was their availability, meaning they were ready to give themselves to anyone.
The prophet used this strong image to show how serious their unfaithfulness was. They had turned away from the Lord and given their loyalty to other gods and foreign nations.