Hardness is defined by how well a substance will resist scratching by another substance. For example, if mineral A scratches mineral B, and mineral B does not scratch mineral A, then mineral A is harder than mineral B. If mineral A and B both scratch each other, then their hardness is equal.