Hardness refers to the ability of a material to resist deformation or penetration. It is often used as a measure of the hardness of metals, minerals and other materials through various tests such as the Rockwell test or the Mohs scale for gems. In general usage, it can also refer to something that is difficult to do or achieve, or an attribute of someone who is stubborn or uncooperative.