<?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>0001322947</rptOwnerCik>            <rptOwnerName>Richey P Jerome</rptOwnerName>        </reportingOwnerId>        <reportingOwnerAddress>            <rptOwnerStreet1>1800 WASHINGTON ROAD</rptOwnerStreet1>            <rptOwnerStreet2></rptOwnerStreet2>            <rptOwnerCity>PITTSBURGH</rptOwnerCity>            <rptOwnerState>PA</rptOwnerState>            <rptOwnerZipCode>15241</rptOwnerZipCode>            <rptOwnerStateDescription></rptOwnerStateDescription>        </reportingOwnerAddress>        <reportingOwnerRelationship>            <isDirector>0</isDirector>            <isOfficer>1</isOfficer>            <isTenPercentOwner>0</isTenPercentOwner>            <isOther>0</isOther>            <officerTitle>Sr. V.P. &amp; General Counsel</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>372</value>                </transactionShares>                <transactionPricePerShare>                    <value>71.74</value>                    <footnoteId id="F2"/>                </transactionPricePerShare>                <transactionAcquiredDisposedCode>                    <value>D</value>                </transactionAcquiredDisposedCode>            </transactionAmounts>            <postTransactionAmounts>                <sharesOwnedFollowingTransaction>                    <value>15920</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>100</value>                </transactionShares>                <transactionPricePerShare>                    <value>73.15</value>                </transactionPricePerShare>                <transactionAcquiredDisposedCode>                    <value>D</value>                </transactionAcquiredDisposedCode>            </transactionAmounts>            <postTransactionAmounts>                <sharesOwnedFollowingTransaction>                    <value>15820</value>                    <footnoteId id="F3"/>                </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 13, 2007.</footnote>        <footnote id="F2">Represents the weighted average of multiple sales transactions ranging in price from $71.50 to $72.19.</footnote>        <footnote id="F3">Of the 15,820 shares owned directly, 10,205 are restricted stock units including dividend equivalent rights.  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/ P. Jerome Richey by Alexander Reyes his attorney-in-fact</signatureName>        <signatureDate>2008-08-05</signatureDate>    </ownerSignature></ownershipDocument>
