EX-23.1 3 a2197082zex-23_1.htm EX-23.1
QuickLinks -- Click here to rapidly navigate through this document

Exhibit 23.1


CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

        We consent to the incorporation by reference in Registration Statement No. 333-162679 on Form S-8 of our report relating to the consolidated financial statements of PennyMac Mortgage Investment Trust dated March 11, 2010, appearing in the Annual Report on Form 10-K of PennyMac Mortgage Investment Trust for the period from August 4, 2009 (commencement of operations) to December 31, 2009.

/s/ Deloitte & Touche LLP
Los Angeles, California
March 11, 2010




QuickLinks

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM