Mechanical equilibrium occurs when an object or system is at rest or moving with constant velocity, meaning the sum of all forces and torques acting on it are zero. This state ensures that there is no net change in motion, making it a fundamental principle in understanding static and dynamic systems in physics.