Usually opposed to quantity
A quality is an intrinsic property, something that is part of its essence.
For example, it is a quality of a chair that it can be used to sit on.
Quality as a mass noun or adjective refers to the extent to which something is good: a model instance of its kind. For example, a quality chair is very well suited to sit on, it doesn't fall apart easily, etc.