Heart failure occurs when the heart can't pump blood as well as it should. It can affect either the left side of the heart (left-sided heart failure) or the right side (right-sided heart failure).