content: <?xml version="1.0" encoding="UTF-8"?><edgarSubmission xmlns="http://www.sec.gov/edgar/ownership" xmlns:com="http://www.sec.gov/edgar/common">
    <headerData>
      <submissionType>144</submissionType>
      <filerInfo>
        <filer>
          <filerCredentials>
            <cik>0001563461</cik>
            <ccc>XXXXXXXX</ccc>
          </filerCredentials>
        </filer>
        <liveTestFlag>LIVE</liveTestFlag>
  
  
  
      </filerInfo>
    </headerData>
    <formData>
      <issuerInfo>
        <issuerCik>0001396440</issuerCik>
        <issuerName>Main Street Capital CORP</issuerName>
        <secFileNumber>333-264643</secFileNumber>
        <issuerAddress>
          <com:street1>1300 POST OAK BOULEVARD</com:street1>
          <com:street2>8TH FLOOR</com:street2>
          <com:city>HOUSTON</com:city>
          <com:stateOrCountry>TX</com:stateOrCountry>
          <com:zipCode>77056</com:zipCode>
        </issuerAddress>
        <issuerContactPhone>(713) 350-6000</issuerContactPhone>
        <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Meserve Nicholas</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
        <relationshipsToIssuer>
          <relationshipToIssuer>Officer</relationshipToIssuer>
        </relationshipsToIssuer>
      </issuerInfo>
      <securitiesInformation>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <brokerOrMarketmakerDetails>
          <name>Fidelity Brokerage Services LLC</name>
          <address>
            <com:street1>900 Salem Street</com:street1>
            <com:city>Smithfield</com:city>
            <com:stateOrCountry>RI</com:stateOrCountry>
            <com:zipCode>02917</com:zipCode>
          </address>
        </brokerOrMarketmakerDetails>
        <noOfUnitsSold>6000</noOfUnitsSold>
        <aggregateMarketValue>275760.60</aggregateMarketValue>
        <noOfUnitsOutstanding>84980145</noOfUnitsOutstanding>
        <approxSaleDate>03/07/2024</approxSaleDate>
        <securitiesExchangeName>NYSE</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>04/01/2021</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>3629</amountOfSecuritiesAcquired>
        <paymentDate>04/01/2021</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>04/01/2022</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>2371</amountOfSecuritiesAcquired>
        <paymentDate>04/01/2022</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>N</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <securitiesSoldInPast3Months>
        <sellerDetails>
          <name>Nicholas T. Meserve</name>
          <address>
            <com:street1>1300 Post Oak Boulevard</com:street1>
            <com:street2>8th Floor</com:street2>
            <com:city>Houston</com:city>
            <com:stateOrCountry>TX</com:stateOrCountry>
            <com:zipCode>77056</com:zipCode>
          </address>
        </sellerDetails>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <saleDate>12/20/2023</saleDate>
        <amountOfSecuritiesSold>6000</amountOfSecuritiesSold>
        <grossProceeds>258084.28</grossProceeds>
      </securitiesSoldInPast3Months>
      <noticeSignature>
        <noticeDate>03/07/2024</noticeDate>
        <signature>/s/ Gerardo Ibarra-Munoz, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for Nicholas T. Meserve</signature>
      </noticeSignature>
    </formData>
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 4076}]
text: 144
  0001563461
  XXXXXXXX
  LIVE
  0001396440
  Main Street Capital CORP
  333-264643
  1300 POST OAK BOULEVARD
  8TH FLOOR
  HOUSTON
  TX
  77056
  (713) 350-6000
  Meserve Nicholas
  Officer
  Common
  Fidelity Brokerage Services LLC
  900 Salem Street
  Smithfield
  RI
  02917
  6000
  275760.60
  84980145
  03/07/2024
  NYSE
  Common
  04/01/2021
  Restricted Stock Vesting
  Issuer
  N
  3629
  04/01/2021
  Compensation
  Common
  04/01/2022
  Restricted Stock Vesting
  Issuer
  N
  2371
  04/01/2022
  Compensation
  N
  Nicholas T. Meserve
  1300 Post Oak Boulevard
  8th Floor
  Houston
  TX
  77056
  Common
  12/20/2023
  6000
  258084.28
  03/07/2024
  /s/ Gerardo Ibarra-Munoz, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for Nicholas T. Meserve