Exhibit 5.1

The Tower at Peabody Place
100 Peabody Place, Suite 1300
Memphis, TN 38103-3672
(901) 543-5900
August 19, 2021
Mid-America Apartments, L.P.
c/o Mid-America Apartment Communities, Inc., as general partner
6815 Poplar Avenue, Suite 500
Germantown, TN 38138
Re: Mid-America Apartments, L.P. 1.100% Senior Notes due 2026 and 2.875% Senior Notes due 2051
Ladies and Gentlemen:
We have acted as counsel to Mid-America Apartments, L.P., a Tennessee limited partnership (the “Operating Partnership”) and majority-owned subsidiary of Mid-America Apartment Communities, Inc., a Tennessee corporation (the “Company”), in connection with the issuance and sale of $300,000,000 aggregate principal amount of the Operating Partnership’s 1.100% Senior Notes due 2026 (the “2026 Notes”) and $300,000,000 aggregate principal amount of the Operating Partnership’s 2.875% Senior Notes due 2051 (the “2051 Notes,” and together with the 2026 Notes, the “Notes”) pursuant to (i) an Indenture dated as of May 9, 2017 (the “Base Indenture”), as amended and supplemented by a Sixth Supplemental Indenture dated as of August 19, 2021 (the “Sixth Supplemental Indenture”; the Base Indenture, as amended and supplemented by the Sixth Supplemental Indenture, is hereinafter called the “Indenture”), each between the Operating Partnership and U.S. Bank National Association, as trustee (the “Trustee”), (ii) the Underwriting Agreement dated as of August 5, 2021 (the “Underwriting Agreement”) among the Operating Partnership and J.P. Morgan Securities LLC, Citigroup Global Markets Inc., PNC Capital Markets LLC, U.S. Bancorp Investments, Inc. and Wells Fargo Securities, LLC, as representatives of the several underwriters listed in Schedule 1 thereto (the “Underwriters”), and (iii) a prospectus supplement dated as of August 5, 2021 (the “Prospectus Supplement”) and the accompanying base prospectus dated as of July 29, 2021 (the “Base Prospectus” and collectively with the Prospectus Supplement, the “Prospectus”) that form part of the Company’s and the Operating Partnership’s effective registration statement on Form S-3 (Registration No. 333-258271 and Registration No. 333-258271-01) (the “Registration Statement”) filed with the Securities and Exchange Commission (“Commission”) under the Securities Act of 1933, as amended (the “Securities Act”). This opinion letter is furnished to you at your request to enable you to fulfill the requirements of Item 601(b)(5) of Regulation S-K under the Securities 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 issuance of the Notes.
We have examined the Registration Statement, the Prospectus, the Underwriting Agreement, the Indenture and the Notes. We also have examined the originals, or duplicates or certified or conformed copies, of such corporate and other records, agreements, documents and
bassberry.com