A visual map that shows the «building blocks» of a software system and how they relate to one another.
Think of a Class Diagram as the «Architectural Blueprint» for a piece of software. If you were building a house, you would need a drawing that shows the rooms, the doors, and how they are connected. In software, a Class Diagram does the same thing for code.