Elastic energy is the potential energy stored in an object when it is deformed, such as when a spring is compressed or stretched. This energy is released when the object returns to its original shape, demonstrating the conservation of energy in mechanical systems.