Exhibit 5.1

| | | | |
March 5, 2021 | | | | Jason L. Kropp |
| | | | +1 617 526 6421 (t) |
| | | | +1 617 406 9499 (m) |
| | | | Jason.Kropp@wilmerhale.com |
Ameresco, Inc.
111 Speen Street, Suite 410
Framingham, MA 01701
Re: | Registration Statement on Form S-3 |
Ladies and Gentlemen:
This opinion is furnished to you in connection with (i) the Registration Statement on Form S-3 (File No. 333-253878) (the “Registration Statement”), filed by Ameresco, Inc., a Delaware corporation (the “Company”), with the Securities and Exchange Commission (the “Commission”) for the purpose of registering with the Commission under the Securities Act of 1933, as amended (the “Securities Act”), among other things, shares of the Company’s Class A common stock, $0.0001 par value per share (the “Shares”), which may be issued from time to time on a delayed or continuous basis pursuant to Rule 415 under the Securities Act as set forth in the Registration Statement and the base prospectus contained therein (the “Base Prospectus”) and (ii) the prospectus supplement, dated March 4, 2021 (the “Prospectus Supplement” and, together with the Base Prospectus, the “Prospectus”) relating to the issuance and sale pursuant to the Registration Statement of up to 3,680,000 Shares, of which (i) 2,875,000 Shares will be issued and sold by the Company (including 375,000 Shares issuable upon exercise of an option to purchase additional shares granted by the Company) (the “Company Shares”) and (ii) 805,000 Shares will be sold by stockholders of the Company (the “Selling Stockholders”) (including 105,000 Shares issuable upon exercise of an option to purchase additional shares granted by the Selling Stockholders) (the “Selling Stockholder Shares” and with the Company Shares, the “Offering Shares”).
The Offering Shares are to be sold by the Company and the Selling Stockholders pursuant to an underwriting agreement dated March 4, 2021 (the “Underwriting Agreement”) by and among the Company, BofA Securities, Inc. and Oppenheimer & Co. Inc. as representatives of the underwriters named therein and the Selling Stockholders, the form of which is being filed with the Commission as Exhibit 1.1 to the Company’s Current Report on Form 8-K, filed on the date hereof.
We are acting as counsel for the Company in connection with the sale by the Company and the Selling Stockholders of the Offering Shares. We have examined signed copies of the Registration Statement and the Prospectus, as filed with the Commission. We have also examined and relied upon the Underwriting Agreement, minutes of meetings and actions of the stockholders and the Board of Directors of the Company as provided to us by the Company, the Restated Certificate of Incorporation and Amended and Restated By-laws of the Company, each as restated and/or amended to date, and such other documents as we have deemed necessary for purposes of rendering the opinions hereinafter set forth.
