<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0607</schemaVersion>

    <documentType>3</documentType>

    <periodOfReport>2026-03-18-05:00</periodOfReport>

    <noSecuritiesOwned>0</noSecuritiesOwned>

    <issuer>
        <issuerCik>0001780785</issuerCik>
        <issuerName>CN ENERGY GROUP. INC.</issuerName>
        <issuerTradingSymbol>CNEY</issuerTradingSymbol>
        <issuerForeignTradingSymbol></issuerForeignTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0002125417</rptOwnerCik>
            <rptOwnerName>Wang Xinyang</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerNonUSAddressFlag>true</rptOwnerNonUSAddressFlag>
            <rptOwnerStreet1>BUILDING 1-B, ROOM 303</rptOwnerStreet1>
            <rptOwnerStreet2>NO. 268 SHINIU  ROAD  LIANDU DISTRICT</rptOwnerStreet2>
            <rptOwnerCity>LISHUI</rptOwnerCity>
            <rptOwnerNonUSStateTerritory></rptOwnerNonUSStateTerritory>
            <rptOwnerCountry>F4</rptOwnerCountry>
            <rptOwnerZipCode></rptOwnerZipCode>
            <rptOwnerStateDescription>CHINA</rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>true</isDirector>
            <isOfficer>false</isOfficer>
            <isTenPercentOwner>false</isTenPercentOwner>
            <isOther>false</isOther>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeHolding>
            <securityTitle>
                <value>Class B ordinary  shares</value>
            </securityTitle>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>631391</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>by Weastfinace Group Inc.</value>
                    <footnoteId id="F1"/>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">631,391 Class B Ordinary Shares are held directly of record by Weastfinace Group Inc., a United State company, which is 100% owned by Xinyang Wang,
and accordingly, Xinyang Wang indirectly and beneficially owns the 631,391 Class B Ordinary Shares.</footnote>
    </footnotes>

    <remarks>No securities are beneficially owned.</remarks>

    <ownerSignature>
        <signatureName>/s/ Xinyang Wang</signatureName>
        <signatureDate>2026-05-20</signatureDate>
    </ownerSignature>
</ownershipDocument>
