s6y AES Corp S-8

AES Corp S-8, filed May 7, 2010: Consent of experts

Exhibit 23.1

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

We consent to the incorporation by reference in the Registration Statement (Form S-8) pertaining to The AES Corporation 2003 Long Term Compensation Plan (As Amended) of our reports dated February 25, 2010, with respect to the consolidated financial statements and schedules of The AES Corporation and the effectiveness of internal control over financial reporting of The AES Corporation included in its Annual Report (Form 10-K) for the year ended December 31, 2009, filed with the Securities and Exchange Commission.

/s/ Ernst & Young LLP

McLean, Virginia

May 6, 2010