When there is not enough of the oxygen-carrying part of the blood or not enough red blood cells.