EX-23.1 10 ec-20231231xex23d1.htm EX-23.1

Exhibit 23.1

Consent of Independent Registered Public Accounting Firm

We consent to the incorporation by reference in the Registration Statement (Form F-3 No. 333-256623) of Ecopetrol S.A. of our reports dated April 18, 2024, with respect to the consolidated financial statements of Ecopetrol S.A., and the effectiveness of internal control over financial reporting of Ecopetrol S.A., included in this Annual Report (Form 20-F) for the year ended December 31, 2023.

/s/ Ernst & Young Audit S.A.S.

A Member Practice of

Ernst & Young Global Limited

Bogotá D.C., Colombia

April 18, 2024