EX-23.1 2 exhibit23-1.htm EX-23.1 Document

Exhibit 23.1
Consent of Independent Registered Public Accounting Firm

The MasTec, Inc. 401(k) Retirement Plan
Miami, Florida
We hereby consent to the incorporation by reference in the Registration Statement on Form S-8 (No. 333-139996 and No. 033-55327) of MasTec, Inc. of our report dated June 20, 2023, relating to the financial statements and supplemental schedules of The MasTec, Inc. 401(k) Retirement Plan which appear in this Form 11-K for the year ended December 31, 2022.
/s/ BDO USA, LLP
Miami, Florida
June 20, 2023