Heart failure is a condition where the heart muscle weakens, leading to the heart's inability to effectively pump blood. This condition can cause shortness of breath, which may occur both during physical activity and at rest.