Work is done when a force moves an object in the direction of the force. It is calculated as the product of force and displacement.