Energy is the capacity to do work, while power is the rate at which work is done or energy is transferred.