EX-23.1 20 ec-20241231xex23d1.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-278823) of Ecopetrol S.A. of our reports dated April 23, 2025, 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, 2024.

​ | ​
​ | /s/ Ernst & Young Audit S.A.S.
​ | A Member Practice of
​ | Ernst & Young Global Limited

​

​

Bogotá, D.C., Colombia

April 23, 2025