Mechanical energy is the sum of potential and kinetic energy in a system, which is conserved in the absence of non-conservative forces like friction. It plays a crucial role in understanding the dynamics of physical systems, from simple machines to complex mechanical structures.