They are similar in that they both refer to a metal's ability to withstand stress without rupturing, but opposite in terms of the type of stress being applied. Ductility has to do with tensile stress, whereas malleability deals with compressive stress.