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

    <schemaVersion>X0508</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2024-10-30</periodOfReport>

    <issuer>
        <issuerCik>0001746129</issuerCik>
        <issuerName>Bank7 Corp.</issuerName>
        <issuerTradingSymbol>BSVN</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001770620</rptOwnerCik>
            <rptOwnerName>Levinson Andrew J</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>1515 E. 71ST STREET, SUITE 100</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>TULSA</rptOwnerCity>
            <rptOwnerState>OK</rptOwnerState>
            <rptOwnerZipCode>74136</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isOfficer>true</isOfficer>
            <officerTitle>Regional President - Tulsa</officerTitle>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>false</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common stock, par value $0.01 per share</value>
            </securityTitle>
            <transactionDate>
                <value>2024-10-30</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>F</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>291</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>42</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>46131</value>
                    <footnoteId id="F1"/>
                    <footnoteId id="F2"/>
                    <footnoteId id="F3"/>
                    <footnoteId id="F4"/>
                    <footnoteId id="F5"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">Includes 5,000 restricted stock units that vest in four equal installments on February 15, 2025, 2026, 2027, and 2028.</footnote>
        <footnote id="F2">Includes 21,875 restricted stock units. The original grant of 25,000 restricted stock units vests in eight equal installments on on February 15, 2024, 2025, 2026, 2027, 2028, 2029, 2030, and 2031.</footnote>
        <footnote id="F3">Includes 2,250 restricted stock units. The original grant of 4,500 restricted stock units vests in four equal installments on December 17, 2022, 2023, 2024, and 2025.</footnote>
        <footnote id="F4">Includes 1,000 restricted stock units. The original grant of 5,000 restricted stock units vests in five equal installments on October 30, 2021, 2022, 2023, 2024, and 2025.</footnote>
        <footnote id="F5">Includes 400 restricted stock units. The original grant of 2,000 restricted stock units vests in five equal installments on January 6, 2021, 2022, 2023, 2024, and 2025.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>John T. Phillips, Attorney-In-Fact</signatureName>
        <signatureDate>2024-10-30</signatureDate>
    </ownerSignature>
</ownershipDocument>
