<?xml version="1.0" encoding="UTF-8"?><edgarSubmission xmlns="http://www.sec.gov/edgar/ownership" xmlns:ns2="http://www.sec.gov/edgar/common">
    <headerData>
        <submissionType>144</submissionType>
        <filerInfo>
            <filer>
                <filerCredentials>
                    <cik>0001196648</cik>
                    <ccc>XXXXXXXX</ccc>
                </filerCredentials>
            </filer>
            <liveTestFlag>LIVE</liveTestFlag>



        </filerInfo>
    </headerData>
    <formData>
        <issuerInfo>
            <issuerCik>0000033533</issuerCik>
            <issuerName>ESPEY MANUFACTURING &amp; ELECTRONICS CORP.</issuerName>
            <secFileNumber>001-04383</secFileNumber>
            <issuerAddress>
                <ns2:street1>233 Ballston Avenue</ns2:street1>
                <ns2:city>Saratoga Springs</ns2:city>
                <ns2:stateOrCountry>NY</ns2:stateOrCountry>
                <ns2:zipCode>12866</ns2:zipCode>
            </issuerAddress>
            <issuerContactPhone>(518) 245-4400</issuerContactPhone>
            <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>PEGGY MURPHY</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
            <relationshipsToIssuer>
                <relationshipToIssuer>Director of Human Resources</relationshipToIssuer>
            </relationshipsToIssuer>
        </issuerInfo>
        <securitiesInformation>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <brokerOrMarketmakerDetails>
                <name>Morgan Stanley Smith Barney LLC Executive Financial Services</name>
                <address>
                    <ns2:street1>1 New York Plaza</ns2:street1>
                    <ns2:street2>38th Floor</ns2:street2>
                    <ns2:city>New York</ns2:city>
                    <ns2:stateOrCountry>NY</ns2:stateOrCountry>
                    <ns2:zipCode>10004</ns2:zipCode>
                </address>
            </brokerOrMarketmakerDetails>
            <noOfUnitsSold>1738</noOfUnitsSold>
            <aggregateMarketValue>43928.30</aggregateMarketValue>
            <noOfUnitsOutstanding>2710933</noOfUnitsOutstanding>
            <approxSaleDate>02/20/2024</approxSaleDate>
            <securitiesExchangeName>NYSE</securitiesExchangeName>
        </securitiesInformation>
        <securitiesToBeSold>
            <securitiesClassTitle>common</securitiesClassTitle>
            <acquiredDate>02/20/2024</acquiredDate>
            <natureOfAcquisitionTransaction>Exercise of options under a registered plan</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Peggy Murphy</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>1738</amountOfSecuritiesAcquired>
            <paymentDate>02/20/2024</paymentDate>
            <natureOfPayment>Cash</natureOfPayment>
        </securitiesToBeSold>
        <nothingToReportFlagOnSecuritiesSoldInPast3Months>N</nothingToReportFlagOnSecuritiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>PEGGY MURPHY</name>
                <address>
                    <ns2:street1>233 Ballston Avenue</ns2:street1>
                    <ns2:city>Saratoga Springs</ns2:city>
                    <ns2:stateOrCountry>NY</ns2:stateOrCountry>
                    <ns2:zipCode>12866</ns2:zipCode>
                </address>
            </sellerDetails>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <saleDate>02/16/2024</saleDate>
            <amountOfSecuritiesSold>6</amountOfSecuritiesSold>
            <grossProceeds>151.50</grossProceeds>
        </securitiesSoldInPast3Months>
        <noticeSignature>
            <noticeDate>02/20/2024</noticeDate>
            <planAdoptionDates/>
            <signature>/s/ Peggy A Murphy</signature>
        </noticeSignature>
    </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 3971}]
144
0001196648
XXXXXXXX
LIVE
0000033533
ESPEY MANUFACTURING & ELECTRONICS CORP.
001-04383
233 Ballston Avenue
Saratoga Springs
NY
12866
(518) 245-4400
PEGGY MURPHY
Director of Human Resources
Common
Morgan Stanley Smith Barney LLC Executive Financial Services
1 New York Plaza
38th Floor
New York
NY
10004
1738
43928.30
2710933
02/20/2024
NYSE
common
02/20/2024
Exercise of options under a registered plan
Peggy Murphy
N
1738
02/20/2024
Cash
N
PEGGY MURPHY
233 Ballston Avenue
Saratoga Springs
NY
12866
Common
02/16/2024
6
151.50
02/20/2024
/s/ Peggy A Murphy