Company: MTZ
Filing Date: 2025-06-26
Form Type: 11-K
Source: 0000015615-25-000062
Chunk: 0

Company: MASTEC INC
Filing Date: 2025-06-26
Form: 11-K
Chunk 0
---
### UNITED STATES

### SECURITIES AND EXCHANGE COMMISSION

#### Washington, DC 20549

#### FORM 11-K
(Mark One)

| x |     | ANNUAL REPORT PURSUANT TO SECTION 15(d) OF THE SECURITIES EXCHANGE ACT OF 1934 |

#### For the fiscal year ended December 31, 2024

#### OR
| o |     | TRANSITION REPORT PURSUANT TO SECTION 15(d) OF THE SECURITIES EXCHANGE ACT OF 1934 |

#### For the transition period from

#### to

#### Commission File Number 001-08106
| A. |     | Full title of the plan and the address of the plan, if different from that of the issuer Named below: |

#### The MasTec, Inc. 401(k) Retirement Plan
| B. |     | Name of issuer of the securities held pursuant to the plan and the address of its principal executive office: |

#### MasTec, Inc.

#### 800 S. Douglas Road, 12th Floor

#### Coral Gables, FL 33134
<div align='center'>1</div>

### TABLE OF CONTENTS
|                                                                                                                         |     | Page |
| Report of Independent Registered Public Accounting Firm – BDO USA, P.C.                                                 |     |    3 |
| Financial Statements                                                                                                    |     |      |
| Statements of Net Assets Available for Benefits as of December 31, 2024and 2023                                         |     |    4 |
| Statement of Changes in Net Assets Available for Benefits for the year ended December 31, 2024                          |     |    5 |
| Notes to Financial Statements                                                                                           |     |    6 |
| Supplemental Schedules                                                                                                  |     |      |
| Schedule H, line 4a – Schedule of Delinquent Deposits of Participant Contributions for the year ended December 31, 2024 |     |   12 |
| Schedule H, line 4i – Schedule of Assets(Heldat End of Year)December 31, 2024                                           |     |   13 |
| Signatures                                                                                                              |     |   14 |
| Exhibit Index:                                                                                                          |     |      |
| Ex-23.1 Consent of Independent Registered Public Accounting Firm – BDO USA, P.C.                                        |     |      |

<div align='center'>2</div>

Report of Independent Registered Public Accounting Firm

Plan Administrator