<?xml version="1.0" encoding="UTF-8"?><edgarSubmission xmlns="http://www.sec.gov/edgar/schedule13g" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <headerData>
    <submissionType>SCHEDULE 13G/A</submissionType>
    <filerInfo>
      <filer>
        <filerCredentials>
          <cik>0001687968</cik>
          <ccc>XXXXXXXX</ccc>
        </filerCredentials>
      </filer>
      <liveTestFlag>LIVE</liveTestFlag>



    </filerInfo>
  </headerData>
  <formData>
    <coverPageHeader>
      <amendmentNo>1</amendmentNo>
      <securitiesClassTitle>Common Stock, par value $0.001 per share</securitiesClassTitle>
      <eventDateRequiresFilingThisStatement>12/31/2025</eventDateRequiresFilingThisStatement>
      <issuerInfo>
        <issuerCik>0001501697</issuerCik>
        <issuerName>X4 PHARMACEUTICALS, INC.</issuerName>
        <issuerCusip>98420X202</issuerCusip>
        <issuerPrincipalExecutiveOfficeAddress>
          <street1 xmlns="http://www.sec.gov/edgar/common">61 North Beacon Street</street1>
          <street2 xmlns="http://www.sec.gov/edgar/common">4th Floor</street2>
          <city xmlns="http://www.sec.gov/edgar/common">Boston</city>
          <stateOrCountry xmlns="http://www.sec.gov/edgar/common">MA</stateOrCountry>
          <zipCode xmlns="http://www.sec.gov/edgar/common">02134</zipCode>
        </issuerPrincipalExecutiveOfficeAddress>
      </issuerInfo>
      <designateRulesPursuantThisScheduleFiled>
        <designateRulePursuantThisScheduleFiled>Rule 13d-1(c)</designateRulePursuantThisScheduleFiled>
      </designateRulesPursuantThisScheduleFiled>
    </coverPageHeader>
    <coverPageHeaderReportingPersonDetails>


      <reportingPersonName>Bain Capital Life Sciences Fund, L.P.</reportingPersonName>
      <citizenshipOrOrganization>E9</citizenshipOrOrganization>
      <reportingPersonBeneficiallyOwnedNumberOfShares>
        <soleVotingPower>0</soleVotingPower>
        <sharedVotingPower>0</sharedVotingPower>
        <soleDispositivePower>0</soleDispositivePower>
        <sharedDispositivePower>0</sharedDispositivePower>
      </reportingPersonBeneficiallyOwnedNumberOfShares>
      <reportingPersonBeneficiallyOwnedAggregateNumberOfShares>0</reportingPersonBeneficiallyOwnedAggregateNumberOfShares>
      <aggregateAmountExcludesCertainSharesFlag>N</aggregateAmountExcludesCertainSharesFlag>
      <classPercent>0</classPercent>
      <typeOfReportingPerson>PN</typeOfReportingPerson>
    </coverPageHeaderReportingPersonDetails>
    <coverPageHeaderReportingPersonDetails>


      <reportingPersonName>Bain Capital Life Sciences Fund II, L.P.</reportingPersonName>
      <citizenshipOrOrganization>E9</citizenshipOrOrganization>
      <reportingPersonBeneficiallyOwnedNumberOfShares>
        <soleVotingPower>0</soleVotingPower>
        <sharedVotingPower>64190</sharedVotingPower>
        <soleDispositivePower>0</soleDispositivePower>
        <sharedDispositivePower>64190</sharedDispositivePower>
      </reportingPersonBeneficiallyOwnedNumberOfShares>
      <reportingPersonBeneficiallyOwnedAggregateNumberOfShares>64190</reportingPersonBeneficiallyOwnedAggregateNumberOfShares>
      <aggregateAmountExcludesCertainSharesFlag>N</aggregateAmountExcludesCertainSharesFlag>
      <classPercent>0.07</classPercent>
      <typeOfReportingPerson>PN</typeOfReportingPerson>
    </coverPageHeaderReportingPersonDetails>
    <coverPageHeaderReportingPersonDetails>


      <reportingPersonName>BCIP Life Sciences Associates, LP</reportingPersonName>
      <citizenshipOrOrganization>DE</citizenshipOrOrganization>
      <reportingPersonBeneficiallyOwnedNumberOfShares>
        <soleVotingPower>0</soleVotingPower>
        <sharedVotingPower>7817</sharedVotingPower>
        <soleDispositivePower>0</soleDispositivePower>
        <sharedDispositivePower>7817</sharedDispositivePower>
      </reportingPersonBeneficiallyOwnedNumberOfShares>
      <reportingPersonBeneficiallyOwnedAggregateNumberOfShares>7817</reportingPersonBeneficiallyOwnedAggregateNumberOfShares>
      <aggregateAmountExcludesCertainSharesFlag>N</aggregateAmountExcludesCertainSharesFlag>
      <classPercent>0.01</classPercent>
      <typeOfReportingPerson>PN</typeOfReportingPerson>
    </coverPageHeaderReportingPersonDetails>
    <coverPageHeaderReportingPersonDetails>


      <reportingPersonName>BCLS II Investco, LP</reportingPersonName>
      <citizenshipOrOrganization>DE</citizenshipOrOrganization>
      <reportingPersonBeneficiallyOwnedNumberOfShares>
        <soleVotingPower>0</soleVotingPower>
        <sharedVotingPower>758598</sharedVotingPower>
        <soleDispositivePower>0</soleDispositivePower>
        <sharedDispositivePower>758598</sharedDispositivePower>
      </reportingPersonBeneficiallyOwnedNumberOfShares>
      <reportingPersonBeneficiallyOwnedAggregateNumberOfShares>758598</reportingPersonBeneficiallyOwnedAggregateNumberOfShares>
      <aggregateAmountExcludesCertainSharesFlag>N</aggregateAmountExcludesCertainSharesFlag>
      <classPercent>0.8</classPercent>
      <typeOfReportingPerson>PN</typeOfReportingPerson>
    </coverPageHeaderReportingPersonDetails>
    <coverPageHeaderReportingPersonDetails>


      <reportingPersonName>BCLS I Investco, LP</reportingPersonName>
      <citizenshipOrOrganization>DE</citizenshipOrOrganization>
      <reportingPersonBeneficiallyOwnedNumberOfShares>
        <soleVotingPower>0</soleVotingPower>
        <sharedVotingPower>89633</sharedVotingPower>
        <soleDispositivePower>0</soleDispositivePower>
        <sharedDispositivePower>89633</sharedDispositivePower>
      </reportingPersonBeneficiallyOwnedNumberOfShares>
      <reportingPersonBeneficiallyOwnedAggregateNumberOfShares>89633</reportingPersonBeneficiallyOwnedAggregateNumberOfShares>
      <aggregateAmountExcludesCertainSharesFlag>N</aggregateAmountExcludesCertainSharesFlag>
      <classPercent>0.09</classPercent>
      <typeOfReportingPerson>PN</typeOfReportingPerson>
    </coverPageHeaderReportingPersonDetails>
    <coverPageHeaderReportingPersonDetails>


      <reportingPersonName>BCLS II Equity Opportunities, LP</reportingPersonName>
      <citizenshipOrOrganization>DE</citizenshipOrOrganization>
      <reportingPersonBeneficiallyOwnedNumberOfShares>
        <soleVotingPower>0</soleVotingPower>
        <sharedVotingPower>7047216</sharedVotingPower>
        <soleDispositivePower>0</soleDispositivePower>
        <sharedDispositivePower>7047216</sharedDispositivePower>
      </reportingPersonBeneficiallyOwnedNumberOfShares>
      <reportingPersonBeneficiallyOwnedAggregateNumberOfShares>7047216</reportingPersonBeneficiallyOwnedAggregateNumberOfShares>
      <aggregateAmountExcludesCertainSharesFlag>N</aggregateAmountExcludesCertainSharesFlag>
      <classPercent>7.43</classPercent>
      <typeOfReportingPerson>PN</typeOfReportingPerson>
    </coverPageHeaderReportingPersonDetails>
    <items>
      <item1>
        <issuerName>X4 PHARMACEUTICALS, INC.</issuerName>
        <issuerPrincipalExecutiveOfficeAddress>61 North Beacon Street, 4th Floor, Boston, Massachusetts 02134.</issuerPrincipalExecutiveOfficeAddress>
      </item1>
      <item2>
        <filingPersonName>This Schedule 13G is being filed jointly by Bain Capital Life Sciences Fund, L.P., a Cayman Islands exempted limited partnership ("BCLS Fund I"), Bain Capital Life Sciences Fund II, L.P., a Cayman Islands exempted limited partnership ("BCLS Fund II"), BCIP Life Sciences Associates, LP, a Delaware limited partnership ("BCIPLS"), BCLS II Investco, LP, a Delaware limited partnership ("BCLS II Investco"), BCLS I Investco, LP, a Delaware limited partnership ("BCLS I Investco"), and BCLS II Equity Opportunities, LP, a Delaware limited partnership ("BCLS II Equity" and, together with BCLS Fund I, BCLS Fund II, BCIPLS, BCLS II Investco and BCLS I Investco, the "Reporting Persons").

Bain Capital Life Sciences Investors, LLC, a Delaware limited liability company ("BCLSI"), is (i) the general partner of Bain Capital Life Sciences Partners, LP, a Cayman Islands exempted limited partnership ("BCLSP"), which is the general partner of BCLS Fund I, and (ii) the manager of Bain Capital Life Sciences Investors II, LLC, a Cayman Islands limited liability company ("BCLSI II"), which is the general partner of BCLS Fund II.

Boylston Coinvestors, LLC, a Delaware limited liability company ("Boylston"), is the general partner of BCIPLS. BCLSI governs the investment strategy and decision-making process with respect to investments held by BCIPLS.

BCLS II Investco (GP), LLC, a Delaware limited liability company ("BCLS II Investco GP"), whose manager is BCLS Fund II, is the general partner of BCLS II Investco.

BCLS I Investco GP, LLC, a Delaware limited liability company ("BCLS I Investco GP"), whose manager is BCLS Fund I, is the general partner of BCLS I Investco.

BCLS II Equity Opportunities GP, LLC, a Delaware limited liability company ("BCLS II Equity GP" and, together with the Reporting Persons, BCLSI, BCLSP, BCLSI II, Boylston, BCLS II Investco GP and BCLS I Investco GP, the "Bain Capital Life Sciences Entities"), whose manager is BCLS Fund II, is the general partner of BCLS II Equity.

As a result, BCLSI may be deemed to share voting and dispositive power with respect to the securities held by the Reporting Persons.

The Reporting Persons have entered into a Joint Filing Agreement, dated February 17, 2026, pursuant to which the Reporting Persons have agreed to file this Schedule 13G jointly in accordance with the provisions of Rule 13d-1(k)(1) promulgated under the Act.</filingPersonName>
        <principalBusinessOfficeOrResidenceAddress>The principal business address for each of the Bain Capital Life Sciences Entities is 200 Clarendon Street, Boston, Massachusetts 02116.</principalBusinessOfficeOrResidenceAddress>
        <citizenship>See Item 2(a) hereof.</citizenship>
      </item2>
      <item3>
        <notApplicableFlag>Y</notApplicableFlag>
      </item3>
      <item4>
        <amountBeneficiallyOwned>As of December 31, 2025, (i) BCLS Fund I directly holds zero shares of Common Stock; (ii) BCLS Fund II directly holds 64,190 shares of Common Stock; (iii) BCIPLS directly holds 7,817 shares of Common Stock; (iv) BCLS II Investco directly holds 543,642 shares of Common Stock, a warrant exercsiable for up to 214,956 shares of Common Stock and a Class C warrant exercisable for up to 68,818 shares of Common Stock; (v) BCLS I Investco directly holds a warrant exercisable for up to 89,633 shares of Common Stock and a Class C warrant exercisable for up to 28,696 shares of Common Stock; and (vi) BCLS II Equity directly holds a pre-funded warrant exercisable for up to 7,047,216 shares of Common Stock.

BCLS II Investco, BCLS I Investco and BCLS II Equity are (i) prohibited from exercising warrants to purchase Common Stock or pre-funded warrants to purchase Common Stock if, as a result of such exercise, the Reporting Persons would together beneficially own more than 9.99% of the total number of shares of Common Stock then issued and outstanding immediately after giving effect to the exercise and (ii) prohibited from exercising Class C warrants to purchase Common Stock if, as a result of such exercise, the Reporting Persons would together beneficially own more than 4.99% of the total number of shares of Common Stock then issued and outstanding immediately after giving effect to the exercise (collectively, the "Beneficial Ownership Blockers").

Accordingly, pursuant to Rule 13d-3 of the Act and the relationships described herein, as of December 31, 2025, the Reporting Persons may be deemed to collectively beneficially own (i) 615,649 shares of Common Stock, (ii) a pre-funded warrant exercisable for up to 7,047,216 shares of Common Stock and (iii) warrants exercisable for up to 304,589 shares of Common Stock, together representing 8.41% of the oustanding shares of Common Stock.

The calculation of the beneficial ownership of the Reporting Persons is based on (i) 87,436,688 shares of Common Stock issued and outstanding as of October 31, 2025, as reported by the Issuer in its Quarterly Report on Form 10-Q filed with the Securities and Exchange Commission on November 5, 2025, and (ii) 7,351,805 shares of Common Stock issuable upon the exercise of warrants and pre-funded warrants held by the Reporting Persons, which reflects the Beneficial Ownership Blockers.</amountBeneficiallyOwned>
        <classPercent>See Item 4(a) hereof.</classPercent>
        <numberOfSharesPersonHas>
          <solePowerOrDirectToVote>0</solePowerOrDirectToVote>
          <sharedPowerOrDirectToVote>See Item 4(a) hereof.</sharedPowerOrDirectToVote>
          <solePowerOrDirectToDispose>0</solePowerOrDirectToDispose>
          <sharedPowerOrDirectToDispose>See Item 4(a) hereof.</sharedPowerOrDirectToDispose>
        </numberOfSharesPersonHas>
      </item4>
      <item5>
        <notApplicableFlag>Y</notApplicableFlag>
      </item5>
      <item6>
        <notApplicableFlag>Y</notApplicableFlag>
      </item6>
      <item7>
        <notApplicableFlag>Y</notApplicableFlag>
      </item7>
      <item8>
        <notApplicableFlag>Y</notApplicableFlag>
      </item8>
      <item9>
        <notApplicableFlag>Y</notApplicableFlag>
      </item9>
      <item10>
        <notApplicableFlag>N</notApplicableFlag>
        <certifications>By signing below I certify that, to the best of my knowledge and belief, the securities referred to above were not acquired and are not held for the purpose of or with the effect of changing or influencing the control of the issuer of the securities and were not acquired and are not held in connection with or as a participant in any transaction having that purpose or effect, other than activities solely in connection with a nomination under ?? 240.14a-11.</certifications>
      </item10>
    </items>
    <signatureInformation>
      <reportingPersonName>Bain Capital Life Sciences Fund, L.P.</reportingPersonName>
      <signatureDetails>
        <signature>/s/ Andrew Hack</signature>
        <title>Andrew Hack, Partner of Bain Capital Life Sciences Investors, LLC</title>
        <date>02/17/2026</date>
      </signatureDetails>
    </signatureInformation>
    <signatureInformation>
      <reportingPersonName>Bain Capital Life Sciences Fund II, L.P.</reportingPersonName>
      <signatureDetails>
        <signature>/s/ Andrew Hack</signature>
        <title>Andrew Hack, Partner of Bain Capital Life Sciences Investors, LLC</title>
        <date>02/17/2026</date>
      </signatureDetails>
    </signatureInformation>
    <signatureInformation>
      <reportingPersonName>BCIP Life Sciences Associates, LP</reportingPersonName>
      <signatureDetails>
        <signature>/s/ Andrew Hack</signature>
        <title>Andrew Hack, Authorized Signatory of Boylston Coinvestors, LLC</title>
        <date>02/17/2026</date>
      </signatureDetails>
    </signatureInformation>
    <signatureInformation>
      <reportingPersonName>BCLS II Investco, LP</reportingPersonName>
      <signatureDetails>
        <signature>/s/ Andrew Hack</signature>
        <title>Andrew Hack, Partner of Bain Capital Life Sciences Investors, LLC</title>
        <date>02/17/2026</date>
      </signatureDetails>
    </signatureInformation>
    <signatureInformation>
      <reportingPersonName>BCLS I Investco, LP</reportingPersonName>
      <signatureDetails>
        <signature>/s/ Andrew Hack</signature>
        <title>Andrew Hack, Partner of Bain Capital Life Sciences Investors, LLC</title>
        <date>02/17/2026</date>
      </signatureDetails>
    </signatureInformation>
    <signatureInformation>
      <reportingPersonName>BCLS II Equity Opportunities, LP</reportingPersonName>
      <signatureDetails>
        <signature>/s/ Andrew Hack</signature>
        <title>Andrew Hack, Partner of Bain Capital Life Sciences Investors, LLC</title>
        <date>02/17/2026</date>
      </signatureDetails>
    </signatureInformation>
  </formData>

</edgarSubmission>
