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>0001345434</cik>
            <ccc>XXXXXXXX</ccc>
          </filerCredentials>
        </filer>
        <liveTestFlag>LIVE</liveTestFlag>
  
  
  
      </filerInfo>
    </headerData>
    <formData>
      <issuerInfo>
        <issuerCik>0000015615</issuerCik>
        <issuerName>MASTEC INC</issuerName>
        <secFileNumber>001-08106</secFileNumber>
        <issuerAddress>
          <com:street1>800 S. DOUGLAS ROAD</com:street1>
          <com:street2>12TH FLOOR</com:street2>
          <com:city>CORAL GABLES</com:city>
          <com:stateOrCountry>FL</com:stateOrCountry>
          <com:zipCode>33134</com:zipCode>
        </issuerAddress>
        <issuerContactPhone>3055991800</issuerContactPhone>
        <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Love Timothy Michael</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
        <relationshipsToIssuer>
          <relationshipToIssuer>Officer</relationshipToIssuer>
        </relationshipsToIssuer>
      </issuerInfo>
      <securitiesInformation>
        <securitiesClassTitle>Common Stock</securitiesClassTitle>
        <brokerOrMarketmakerDetails>
          <name>Merrill Lynch</name>
          <address>
            <com:street1>225 Liberty St</com:street1>
            <com:street2>Floor 37</com:street2>
            <com:city>New York</com:city>
            <com:stateOrCountry>NY</com:stateOrCountry>
            <com:zipCode>10281</com:zipCode>
          </address>
        </brokerOrMarketmakerDetails>
        <noOfUnitsSold>600</noOfUnitsSold>
        <aggregateMarketValue>84485.28</aggregateMarketValue>
        <noOfUnitsOutstanding>79234969</noOfUnitsOutstanding>
        <approxSaleDate>11/06/2024</approxSaleDate>
        <securitiesExchangeName>NYSE</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>Common Stock</securitiesClassTitle>
        <acquiredDate>12/21/2021</acquiredDate>
        <natureOfAcquisitionTransaction>Vesting of restricted stock unit award</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>MASTEC INC</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>600</amountOfSecuritiesAcquired>
        <paymentDate>12/21/2021</paymentDate>
        <natureOfPayment>Granted as part of issuer equity compensation plan</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <noticeSignature>
        <noticeDate>11/06/2024</noticeDate>
        <signature>Timothy Love</signature>
      </noticeSignature>
    </formData>
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 2846}]
text: 144
  0001345434
  XXXXXXXX
  LIVE
  0000015615
  MASTEC INC
  001-08106
  800 S. DOUGLAS ROAD
  12TH FLOOR
  CORAL GABLES
  FL
  33134
  3055991800
  Love Timothy Michael
  Officer
  Common Stock
  Merrill Lynch
  225 Liberty St
  Floor 37
  New York
  NY
  10281
  600
  84485.28
  79234969
  11/06/2024
  NYSE
  Common Stock
  12/21/2021
  Vesting of restricted stock unit award
  MASTEC INC
  N
  600
  12/21/2021
  Granted as part of issuer equity compensation plan
  Y
  11/06/2024
  Timothy Love