Exhibit 5.1

July 30, 2019
Bank of Montreal,
100 King Street West,
1 First Canadian Place,
Toronto, Ontario,
Canada M5X 1A1.
Ladies and Gentlemen:
We are acting as counsel to Bank of Montreal, a Canadian chartered bank (the “Bank”), in connection with the issuance and delivery of US$500,000,000 principal amount of the Bank’s 4.800% Fixed Rate ResettingNon-Cumulative Subordinated Additional Tier 1 Capital Notes(Non-Viability Contingent Capital (NVCC)) (the “Notes”). The Bank filed with the Securities and Exchange Commission, on April 7, 2017, a registration statement on FormF-3 (FileNo. 333-217200), as subsequently amended on April 27, 2017 (the “Registration Statement”) under the Securities Act of 1933 (the “Act”) relating to, among other things, the proposed offer and sale of US$500,000,000 aggregate principal amount of the Notes. The Notes are being issued pursuant to the Indenture, dated as of December 12, 2017, and the Third Supplemental Indenture, dated as of July 30, 2019 (together, the “Indenture”), between the Bank and Wells Fargo Bank, National Association, as trustee (the “Trustee”).
We have examined such corporate records, certificates and other documents, and such questions of United States federal and New York state law, as we have considered necessary or appropriate for the purposes of this opinion. Upon the basis of such examination, it is our opinion that the Notes constitute valid and legally binding obligations of the Bank, subject to bankruptcy, insolvency, fraudulent transfer, reorganization, moratorium and similar laws of general applicability relating to or affecting creditors’ rights and to general equity principles;provided,however, that we express no opinion with respect to the subordination provisions of the Indenture or the Notes or the provisions of the Indenture or the Notes relating to an NVCC Automatic Conversion upon the occurrence of a Trigger Event (as such terms are defined in the Indenture) that, under the terms of the Indenture or the Notes, as applicable, are governed by the laws of the Province of Ontario and the federal law of Canada applicable therein.
The foregoing opinion is limited to the federal laws of the United States and the laws of the State of New York, and we are expressing no opinion as to the effect of the laws of any other jurisdiction.