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

    <schemaVersion>X0508</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2025-02-26</periodOfReport>

    <issuer>
        <issuerCik>0000903419</issuerCik>
        <issuerName>ALERUS FINANCIAL CORP</issuerName>
        <issuerTradingSymbol>ALRS</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0002012603</rptOwnerCik>
            <rptOwnerName>Wilson Forrest</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>401 DEMERS AVENUE</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>GRAND FORKS</rptOwnerCity>
            <rptOwnerState>ND</rptOwnerState>
            <rptOwnerZipCode>58201</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isOfficer>1</isOfficer>
            <officerTitle>EVP &amp; Chief Ret. Svcs. Officer</officerTitle>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>0</aff10b5One>

    <derivativeTable>
        <derivativeTransaction>
            <securityTitle>
                <value>Restricted Stock Units</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <footnoteId id="F1"/>
            </conversionOrExercisePrice>
            <transactionDate>
                <value>2025-02-26</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>A</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>7558</value>
                    <footnoteId id="F2"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <exerciseDate>
                <footnoteId id="F3"/>
            </exerciseDate>
            <expirationDate>
                <footnoteId id="F3"/>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>7558</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>7558</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeTransaction>
    </derivativeTable>

    <footnotes>
        <footnote id="F1">Each restricted stock unit represents a contingent right to receive one share of Alerus Financial Corporation common stock.</footnote>
        <footnote id="F2">Includes 3,023 restricted stock units that have time-based vesting components. Includes 4,535 restricted stock units that have performance-based vesting components.</footnote>
        <footnote id="F3">The time-based restricted stock units vest on February 26, 2028. The performance-based restricted stock units vest no later than March 15, 2028, so long as Alerus Financial Corporation meets certain cumulative EPS and ROE goals. The payout for performance-based restricted stock units could be increased to 150% of target or reduced to 0% based on achievement of the applicable metrics.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ Nicholas Brenckman, by power of attorney</signatureName>
        <signatureDate>2025-02-28</signatureDate>
    </ownerSignature>
</ownershipDocument>
