<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="../4_X02.xsl"?><ownershipDocument>    <schemaVersion>X0303</schemaVersion>    <documentType>4</documentType>    <periodOfReport>2008-08-01</periodOfReport>    <notSubjectToSection16>0</notSubjectToSection16>    <issuer>        <issuerCik>0001070412</issuerCik>        <issuerName>CONSOL ENERGY INC</issuerName>        <issuerTradingSymbol>CNX</issuerTradingSymbol>    </issuer>    <reportingOwner>        <reportingOwnerId>            <rptOwnerCik>0001241243</rptOwnerCik>            <rptOwnerName>HARVEY J BRETT</rptOwnerName>        </reportingOwnerId>        <reportingOwnerAddress>            <rptOwnerStreet1>1800 WASHINGTON ROAD</rptOwnerStreet1>            <rptOwnerStreet2></rptOwnerStreet2>            <rptOwnerCity>PITTSBURGH</rptOwnerCity>            <rptOwnerState>PA</rptOwnerState>            <rptOwnerZipCode>15241</rptOwnerZipCode>            <rptOwnerStateDescription></rptOwnerStateDescription>        </reportingOwnerAddress>        <reportingOwnerRelationship>            <isDirector>1</isDirector>            <isOfficer>1</isOfficer>            <isTenPercentOwner>0</isTenPercentOwner>            <isOther>0</isOther>            <officerTitle>President &amp; CEO</officerTitle>        </reportingOwnerRelationship>    </reportingOwner>    <nonDerivativeTable>        <nonDerivativeTransaction>            <securityTitle>                <value>Common shares, $0.01 par value per share</value>            </securityTitle>            <transactionDate>                <value>2008-08-01</value>            </transactionDate>            <transactionCoding>                <transactionFormType>4</transactionFormType>                <transactionCode>S</transactionCode>                <equitySwapInvolved>0</equitySwapInvolved>                <footnoteId id="F1"/>            </transactionCoding>            <transactionAmounts>                <transactionShares>                    <value>2100</value>                </transactionShares>                <transactionPricePerShare>                    <value>70.48</value>                    <footnoteId id="F2"/>                </transactionPricePerShare>                <transactionAcquiredDisposedCode>                    <value>D</value>                </transactionAcquiredDisposedCode>            </transactionAmounts>            <postTransactionAmounts>                <sharesOwnedFollowingTransaction>                    <value>263438</value>                </sharesOwnedFollowingTransaction>            </postTransactionAmounts>            <ownershipNature>                <directOrIndirectOwnership>                    <value>D</value>                </directOrIndirectOwnership>            </ownershipNature>        </nonDerivativeTransaction>        <nonDerivativeTransaction>            <securityTitle>                <value>Common shares, $0.01 par value per share</value>            </securityTitle>            <transactionDate>                <value>2008-08-01</value>            </transactionDate>            <transactionCoding>                <transactionFormType>4</transactionFormType>                <transactionCode>S</transactionCode>                <equitySwapInvolved>0</equitySwapInvolved>                <footnoteId id="F1"/>            </transactionCoding>            <transactionAmounts>                <transactionShares>                    <value>5328</value>                </transactionShares>                <transactionPricePerShare>                    <value>71.68</value>                    <footnoteId id="F3"/>                </transactionPricePerShare>                <transactionAcquiredDisposedCode>                    <value>D</value>                </transactionAcquiredDisposedCode>            </transactionAmounts>            <postTransactionAmounts>                <sharesOwnedFollowingTransaction>                    <value>258110</value>                </sharesOwnedFollowingTransaction>            </postTransactionAmounts>            <ownershipNature>                <directOrIndirectOwnership>                    <value>D</value>                </directOrIndirectOwnership>            </ownershipNature>        </nonDerivativeTransaction>        <nonDerivativeTransaction>            <securityTitle>                <value>Common shares, $0.01 par value per share</value>            </securityTitle>            <transactionDate>                <value>2008-08-01</value>            </transactionDate>            <transactionCoding>                <transactionFormType>4</transactionFormType>                <transactionCode>S</transactionCode>                <equitySwapInvolved>0</equitySwapInvolved>                <footnoteId id="F1"/>            </transactionCoding>            <transactionAmounts>                <transactionShares>                    <value>3100</value>                </transactionShares>                <transactionPricePerShare>                    <value>72.57</value>                    <footnoteId id="F4"/>                </transactionPricePerShare>                <transactionAcquiredDisposedCode>                    <value>D</value>                </transactionAcquiredDisposedCode>            </transactionAmounts>            <postTransactionAmounts>                <sharesOwnedFollowingTransaction>                    <value>255010</value>                </sharesOwnedFollowingTransaction>            </postTransactionAmounts>            <ownershipNature>                <directOrIndirectOwnership>                    <value>D</value>                </directOrIndirectOwnership>            </ownershipNature>        </nonDerivativeTransaction>        <nonDerivativeTransaction>            <securityTitle>                <value>Common shares, $0.01 par value per share</value>            </securityTitle>            <transactionDate>                <value>2008-08-01</value>            </transactionDate>            <transactionCoding>                <transactionFormType>4</transactionFormType>                <transactionCode>S</transactionCode>                <equitySwapInvolved>0</equitySwapInvolved>                <footnoteId id="F1"/>            </transactionCoding>            <transactionAmounts>                <transactionShares>                    <value>1100</value>                </transactionShares>                <transactionPricePerShare>                    <value>73.6</value>                    <footnoteId id="F5"/>                </transactionPricePerShare>                <transactionAcquiredDisposedCode>                    <value>D</value>                </transactionAcquiredDisposedCode>            </transactionAmounts>            <postTransactionAmounts>                <sharesOwnedFollowingTransaction>                    <value>253910</value>                    <footnoteId id="F6"/>                </sharesOwnedFollowingTransaction>            </postTransactionAmounts>            <ownershipNature>                <directOrIndirectOwnership>                    <value>D</value>                </directOrIndirectOwnership>            </ownershipNature>        </nonDerivativeTransaction>    </nonDerivativeTable>    <footnotes>        <footnote id="F1">Transaction effected pursuant to Rule 10b5-1 trading plan adopted by the reporting person on August 14, 2007.</footnote>        <footnote id="F2">Represents the weighted average of multiple sales transactions ranging in price from $70.09 to $70.9275.</footnote>        <footnote id="F3">Represents the weighted average of multiple sales transactions ranging in price from $71.21 to $72.18.</footnote>        <footnote id="F4">Represents the weighted average of multiple sales transactions ranging in price from $72.23 to $73.09.</footnote>        <footnote id="F5">Represents the weighted average of multiple sales transactions ranging in price from $73.26 to $74.23.</footnote>        <footnote id="F6">Of the 253,910 shares owned directly, 104,536 are restricted stock units including dividend equivalent rights and approximately 90 shares were received pursuant to the Company's 401(k) Plan since May 30, 2008 and the date hereof.  The reporting person agrees to provide full information regarding the number of shares sold at each separate price upon request by the SEC Commission staff, the Company or a security holder of the Company.</footnote>    </footnotes>    <ownerSignature>        <signatureName>/s/ J. Brett Harvey by Alexander Reyes, his attorney-in-fact</signatureName>        <signatureDate>2008-08-05</signatureDate>    </ownerSignature></ownershipDocument>
