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

    <schemaVersion>X0206</schemaVersion>

    <documentType>3</documentType>

    <periodOfReport>2022-02-18</periodOfReport>

    <noSecuritiesOwned>1</noSecuritiesOwned>

    <issuer>
        <issuerCik>0000912093</issuerCik>
        <issuerName>VIAVI SOLUTIONS INC.</issuerName>
        <issuerTradingSymbol>VIAV</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001418436</rptOwnerCik>
            <rptOwnerName>Solomon Joanne</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O VIAVI SOLUTIONS INC.</rptOwnerStreet1>
            <rptOwnerStreet2>7047 E GREENWAY PKWY SUITE 250</rptOwnerStreet2>
            <rptOwnerCity>SCOTTSDALE</rptOwnerCity>
            <rptOwnerState>AZ</rptOwnerState>
            <rptOwnerZipCode>85254</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <footnotes></footnotes>

    <ownerSignature>
        <signatureName>/s/ Donna T. Rossi, attorney-in-fact</signatureName>
        <signatureDate>2022-02-23</signatureDate>
    </ownerSignature>
</ownershipDocument>
