Exhibit 5.1
140 Scott Drive
Menlo Park, California 94025
Tel: +1.650.328.4600 Fax: +1.650.463.2600
www.lw.com
FIRM / AFFILIATE OFFICES
BarcelonaMoscow
BeijingMunich
BostonNew York
BrusselsOrange County
Century CityParis
ChicagoRiyadh
DubaiRome
DüsseldorfSan Diego
FrankfurtSan Francisco
HamburgSeoul
Hong KongShanghai
HoustonSilicon Valley
LondonSingapore
Los AngelesTokyo
MadridWashington, D.C.
Milan

May 31, 2017
Achaogen, Inc.
1 Tower Place, Suite 300
South San Francisco, CA 94080
Re: Registration Statement No. 333-217787 on Form S-3; Up to 5,750,000 shares of Common Stock, par value $0.001 per share
Ladies and Gentlemen:
We have acted as special counsel to Achaogen, Inc., a Delaware corporation (the “Company”), in connection with the issuance of up to 5,750,000 shares of common stock, $0.001 par value per share (the “Shares”). The Shares are included in a registration statement on Form S-3 under the Securities Act of 1933, as amended (the “Act”), filed with the Securities and Exchange Commission (the “Commission”) on May 8, 2017 (Registration No. 333-217787) (as amended, the “Registration Statement”), a base prospectus dated May 8, 2017 (the “Base Prospectus”) and a prospectus supplement dated May 24, 2017 (together with the Base Prospectus, the “Prospectus”), and an underwriting agreement dated May 24, 2017, by and among Leerink Partners LLC, Cowen and Company, LLC and Stifel, Nicolaus & Company, Incorporated as representatives of the several underwriters named in the underwriting agreement, and the Company (the “Underwriting Agreement”).
This opinion is being furnished in connection with the requirements of Item 601(b)(5) of Regulation S-K under the Act, and no opinion is expressed herein as to any matter pertaining to the contents of the Registration Statement or the Prospectus, other than as expressly stated herein with respect to the issue of the Shares.
As such counsel, we have examined such matters of fact and questions of law as we have considered appropriate for purposes of this letter. With your consent, we have relied upon certificates and other assurances of officers of the Company and others as to factual matters without having independently verified such factual matters. We are opining herein as to the General Corporation Law of the State of Delaware (the “DGCL”), and we express no opinion with respect to any other laws.

Subject to the foregoing and the other matters set forth herein, it is our opinion that, as of the date hereof, the Shares have been duly authorized by all necessary corporate action of the Company, and, when the Shares shall have been duly registered on the books of the transfer agent and registrar therefor in the name or on behalf of the purchasers, and have been issued by the Company against payment therefor in the circumstances contemplated by the Underwriting Agreement, the Shares will be validly issued, fully paid and nonassessable. In rendering the foregoing opinion, we have assumed that the Company will comply with all applicable notice requirements regarding uncertificated shares provided in the DGCL.
This opinion is for your benefit in connection with the Registration Statement and the Prospectus and may be relied upon by you and by persons entitled to rely upon it pursuant to the applicable provisions of the Act. We consent to your filing this opinion as an exhibit to the Company’s Current Report on Form 8-K filed with the Commission on May 31, 2017 and to the reference to our firm in the Prospectus under the heading “Legal Matters.” In giving such consent, we do not thereby admit that we are in the category of persons whose consent is required under Section 7 of the Act or the rules and regulations of the Commission thereunder.
Very truly yours,
/s/ Latham & Watkins LLP