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

    <schemaVersion>X0206</schemaVersion>

    <documentType>3/A</documentType>

    <periodOfReport>2016-08-03</periodOfReport>

    <dateOfOriginalSubmission>2016-08-09</dateOfOriginalSubmission>

    <noSecuritiesOwned>0</noSecuritiesOwned>

    <issuer>
        <issuerCik>0001409375</issuerCik>
        <issuerName>ORION ENERGY SYSTEMS, INC.</issuerName>
        <issuerTradingSymbol>OESX</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001681065</rptOwnerCik>
            <rptOwnerName>Green Scott A.</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>2210 WOODLAND DRIVE</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>MANITOWOC</rptOwnerCity>
            <rptOwnerState>WI</rptOwnerState>
            <rptOwnerZipCode>54220</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle>Executive Vice President</officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeHolding>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>108780</value>
                    <footnoteId id="F1"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
        <nonDerivativeHolding>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>163743</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>By ANKMC, LLC</value>
                    <footnoteId id="F2"/>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
    </nonDerivativeTable>

    <derivativeTable></derivativeTable>

    <footnotes>
        <footnote id="F1">This amended Form 3 is being filed to correct the number of shares held directly and indirectly by the reporting person at the time of the initial filing. The reporting person's initial Form 3 and subsequent Form 4 filings inadvertently over-reported a holding of 125,270 shares held indirectly by the reporting person's 401k plan that had been disposed of prior to his becoming a Section 16 reporting person. In addition, the reporting person's initial Form 3 and subsequent Form 4 filings inadvertently under-reported the reporting person's direct holdings by 50,000 shares that the reporting person held in an IRA at the time he became a Section 16 reporting person. The net amount of over-reported direct holdings, and the under-reported indirect holdings, result in the reporting person holding a total of 75,270 fewer shares than originally reported on the reporting person's amended and restated Form 3 filed on August 22, 2016.</footnote>
        <footnote id="F2">Shares owned by ANKMC, LLC, of which the reporting person is the sole member.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ Steven R. Barth, Attorney-in-Fact for Scott A. Green</signatureName>
        <signatureDate>2020-03-25</signatureDate>
    </ownerSignature>
</ownershipDocument>
