Coronal mass ejections (CMEs) are often associated with erupting magnetic structures or disappearing Ðlaments. The majority of CMEs headed directly toward the Earth are observed at 1 AU as magnetic cloudsÈthe region in the solar wind where the magnetic Ðeld strength is higher than average and there is a smooth rotation of the magnetic Ðeld vectors. The three-dimensional structure of magnetic clouds can be represented by a force-free Ñux rope. When CMEs reach the Earth, they may or may not cause magnetic storms, alter EarthÏs magnetic Ðeld, or produce the phenomena known as auroras. The geoe †ectiveness of a solar CME depends on the orientation of the magnetic Ðeld in it.Two M-class solar Ñares erupted on 2000 February 17. The second Ñare occurred near a small active region, NOAA Active Region 8872. This eruption was accompanied by a halo CME. However, the February 17 CME did not trigger any magnetic activity when it arrived at the Earth. Another powerful Ñare, on 2000 July 14, was also associated with a halo CME, which caused the strongest geomagnetic activity of solar cycle 23. Using ACE measurements of the interplanetary magnetic Ðelds, we study the orientation of the magnetic Ñux ropes in both sets of magnetic clouds and compare them with the orientation of the solar magnetic Ðelds and disappearing Ðlaments. We Ðnd that the direction of the axial Ðeld and helicity of the Ñux ropes are consistent with those of the erupted Ðlaments. Thus, the geoe †ectiveness of a CME is deÐned by the orientation and structure of the erupted Ðlament and by its magnetic helicity as well. We also suggest that the geoe †ectiveness of a CME can be forecasted using daily full-disk Ha and Y ohkoh images and MDI magnetograms as well.