QuickLinks -- Click here to rapidly navigate through this document


Exhibit 5.1

[Letterhead of Seyfarth Shaw LLP]

March 6, 2019

Mack-Cali Realty Corporation
Harborside 3
210 Hudson Street, Suite 400
Jersey City, New Jersey 07311

Mack-Cali Realty, L.P.
Harborside 3
210 Hudson Street, Suite 400
Jersey City, New Jersey 07311

Ladies and Gentlemen:

        We are acting as counsel to Mack-Cali Realty Corporation, a Maryland corporation (the "Company") in connection with the automatic shelf registration statement on Form S-3 (the "Registration Statement") registering 818,232 shares of the Company's common stock, par value $.01 per share (the "Shares") under the Securities Act of 1933, as amended (the "Securities Act").

        In our capacity as your counsel in connection with the Registration Statement, we are familiar with the proceedings taken by the Company in connection with the authorization and issuance of the Shares. In addition, we have made such legal and factual examinations and inquiries, including examination of originals or copies of originals, certified or otherwise identified to our satisfaction, of such documents, corporate records and instruments, as we have deemed necessary or appropriate for purposes of this opinion, including without limitation: (i) the Company's Articles of Restatement dated September 18, 2009, as amended (the "Charter"), (ii) the Company's Second Amended and Restated Bylaws, as amended, (iii) the Second Amended and Restated Agreement of Limited Partnership of Mack-Cali Realty, L.P., as amended (the "Operating Partnership"), (iv) resolutions adopted by the Board of Directors of the Company on February 8, 2019 (the "Resolutions"), (v) the Registration Statement, including the prospectus (the "Prospectus") included therein, and (vi) such other documents and matters as we have deemed necessary and appropriate to render the opinions set forth in this letter, subject to the limitations, assumptions, and qualifications noted below. In all such examinations, we have assumed the genuineness of all signatures on original and certified documents, the legal capacity of all natural persons, the authenticity of all documents submitted to us as originals, the conformity to executed documents of all unexecuted copies submitted to us, and the conformity to the originals of photostatic copies. We have also assumed that none of the Shares will be transferred in violation of the provisions of Article VI of the Charter, relating to restrictions on ownership and transfer of capital stock.

        We are admitted to the Bar in the State of New York and we express no opinion as to, and, for the purposes of the opinion set forth herein, we have conducted no investigation of, and do not purport to be experts on, any laws other than the laws of the State of New York, the Maryland General Corporation Law, the limited partnership laws of the State of Delaware, and the laws of the United States of America.

        Based upon and subject to the foregoing, it is our opinion that:


        We consent to the use of this opinion as an exhibit to the Registration Statement and further consent to the reference to us under the heading "Legal Matters" in the Registration Statement, the Prospectus constituting a part thereof and any amendments thereto. In giving this consent, we do not admit that we are in the category of persons whose consent is required under Section 7 of the Securities Act, or the rules and regulations promulgated thereunder. In rendering the opinions set forth above, we are opining only as to the specific legal issues expressly set forth therein, and no opinion shall be inferred as to any other matter or matters.

        This opinion is rendered only to you and is solely for your benefit in connection with the transactions covered hereby and is not to be relied upon for any other purpose.

    Very truly yours,

 

 

/s/ SEYFARTH SHAW LLP

2




QuickLinks