Lees are the thick remains, or sediment, that settle at the bottom of a wine container as the wine ferments.
The term appears in three different situations in the Old Testament. Each time it seems to represent a particular phase of fermentation.
Isaiah 25:6 refers to wine at its best (“well-aged,” New Living Translation). This is after a proper fermentation: strong, clear, and filtered. “Wines on the lees” in context refers to the blessings of peace and plenty that the people of God will enjoy in the age to come.
Jeremiah 48:11 and Zephaniah 1:12 refer to wine that is over-fermented. It had become syrupy in appearance and weak and bland in taste. Here, the Bible uses lees as a picture of the people of Judah and Moab who faced God's judgment. They had become comfortable with their way of life and no longer cared about living in ways that pleased God.
Psalm 75:8 uses “dregs” to refer to the bitter sediments and grounds left after the wine has been poured out. God will make the ungodly consume these dregs in judgment.