<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0508</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2025-12-11</periodOfReport>

    <notSubjectToSection16>0</notSubjectToSection16>

    <issuer>
        <issuerCik>0001452477</issuerCik>
        <issuerName>Seven Hills Realty Trust</issuerName>
        <issuerTradingSymbol>SEVN</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001716421</rptOwnerCik>
            <rptOwnerName>Tremont Realty Capital LLC</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>255 WASHINGTON STREET,</rptOwnerStreet1>
            <rptOwnerStreet2>SUITE 300</rptOwnerStreet2>
            <rptOwnerCity>NEWTON</rptOwnerCity>
            <rptOwnerState>MA</rptOwnerState>
            <rptOwnerZipCode>02458</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001613503</rptOwnerCik>
            <rptOwnerName>RMR Group LLC</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>255 WASHINGTON STREET,</rptOwnerStreet1>
            <rptOwnerStreet2>SUITE 300</rptOwnerStreet2>
            <rptOwnerCity>NEWTON</rptOwnerCity>
            <rptOwnerState>MA</rptOwnerState>
            <rptOwnerZipCode>02458</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001644378</rptOwnerCik>
            <rptOwnerName>RMR GROUP INC.</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>255 WASHINGTON STREET,</rptOwnerStreet1>
            <rptOwnerStreet2>SUITE 300</rptOwnerStreet2>
            <rptOwnerCity>NEWTON</rptOwnerCity>
            <rptOwnerState>MA</rptOwnerState>
            <rptOwnerZipCode>02458</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001613450</rptOwnerCik>
            <rptOwnerName>ABP Trust</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>255 WASHINGTON STREET,</rptOwnerStreet1>
            <rptOwnerStreet2>SUITE 300</rptOwnerStreet2>
            <rptOwnerCity>NEWTON</rptOwnerCity>
            <rptOwnerState>MA</rptOwnerState>
            <rptOwnerZipCode>02458</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>0</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Shares of Beneficial Interest</value>
            </securityTitle>
            <transactionDate>
                <value>2025-12-11</value>
            </transactionDate>
            <deemedExecutionDate></deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>P</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionTimeliness></transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>2015748</value>
                    <footnoteId id="F1"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>8.65</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>4577835</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>By Tremont Realty Capital LLC</value>
                    <footnoteId id="F2"/>
                    <footnoteId id="F3"/>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">On October 30, 2025, in connection with a pro rata offering of transferable subscription rights (the &quot;Rights Offering&quot;), Seven Hills Realty Trust (the &quot;Company&quot;) and Tremont Realty Capital LLC (&quot;TRC&quot;) entered into a backstop agreement, pursuant to which, among other things, TRC agreed to purchase 100% of all remaining common shares of the Company not otherwise subscribed for in the Rights Offering (the &quot;Backstop Commitment&quot;). Pursuant to the Backstop Commitment, TRC purchased the 2,015,748 common shares of the Company that remained unsubscribed following the expiration date of the Rights Offering.</footnote>
        <footnote id="F2">Each of the Reporting Persons disclaims beneficial ownership of the securities reported herein, except to the extent of such Reporting Person's pecuniary interest therein, and, pursuant to Rule 16a-1(a)(4) under the Securities Exchange Act of 1934, each of the Reporting Persons states that the inclusion of these securities in this report shall not be deemed an admission of beneficial ownership of all of the reported securities for purposes of Section 16 or for any other purpose.</footnote>
        <footnote id="F3">Reflects shares held directly by TRC. TRC is a direct wholly owned subsidiary of The RMR Group LLC (&quot;RMR LLC&quot;), which is a direct majority owned operating subsidiary of The RMR Group Inc. (&quot;RMR Inc.&quot;). ABP Trust, a Maryland statutory trust, is the controlling shareholder of RMR Inc. ABP Trust, RMR Inc. and RMR LLC may be deemed to beneficially own the shares owned directly by TRC. Adam D. Portnoy is the president, sole trustee and beneficial owner of ABP Trust. Mr. Portnoy has separately filed Section 16 reports with respect to his interests in the Company's securities held by TRC and ABP Trust.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>Tremont Realty Capital LLC /s/ Matthew C. Brown Title: Chief Financial Officer and Treasurer</signatureName>
        <signatureDate>2025-12-11</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>The RMR Group LLC /s/ Matthew C. Brown Title: Executive Vice President, Chief Financial Officer and Treasurer</signatureName>
        <signatureDate>2025-12-11</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>The RMR Group Inc. /s/ Matthew C. Brown Title: Executive Vice President, Chief Financial Officer and Treasurer</signatureName>
        <signatureDate>2025-12-11</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>ABP Trust /s/ Matthew C. Brown Title: Treasurer</signatureName>
        <signatureDate>2025-12-11</signatureDate>
    </ownerSignature>
</ownershipDocument>
