The pH scale measures the acidity or basicity of a substance, ranging from 0 (very acidic) to 14 (very basic).