<?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>0001196650</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>DAVID O'NEIL</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
            <relationshipsToIssuer>
                <relationshipToIssuer>Officer</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>8th Floor</ns2:street2>
                    <ns2:city>New York</ns2:city>
                    <ns2:stateOrCountry>NY</ns2:stateOrCountry>
                    <ns2:zipCode>10004</ns2:zipCode>
                </address>
            </brokerOrMarketmakerDetails>
            <noOfUnitsSold>314</noOfUnitsSold>
            <aggregateMarketValue>11304.00</aggregateMarketValue>
            <noOfUnitsOutstanding>2831399</noOfUnitsOutstanding>
            <approxSaleDate>05/21/2025</approxSaleDate>
            <securitiesExchangeName>NYSE</securitiesExchangeName>
        </securitiesInformation>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>09/13/2007</acquiredDate>
            <natureOfAcquisitionTransaction>Exercise of options under a registered plan</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>314</amountOfSecuritiesAcquired>
            <paymentDate>09/13/2007</paymentDate>
            <natureOfPayment>Cash</natureOfPayment>
        </securitiesToBeSold>
        <nothingToReportFlagOnSecuritiesSoldInPast3Months>N</nothingToReportFlagOnSecuritiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>DAVID O'NEIL</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>05/20/2025</saleDate>
            <amountOfSecuritiesSold>687</amountOfSecuritiesSold>
            <grossProceeds>24735.78</grossProceeds>
        </securitiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>DAVID O'NEIL</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>05/19/2025</saleDate>
            <amountOfSecuritiesSold>1000</amountOfSecuritiesSold>
            <grossProceeds>35800.00</grossProceeds>
        </securitiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>DAVID O'NEIL</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>05/19/2025</saleDate>
            <amountOfSecuritiesSold>800</amountOfSecuritiesSold>
            <grossProceeds>28640.00</grossProceeds>
        </securitiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>DAVID O'NEIL</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>05/19/2025</saleDate>
            <amountOfSecuritiesSold>1600</amountOfSecuritiesSold>
            <grossProceeds>57280.00</grossProceeds>
        </securitiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>DAVID O'NEIL</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>05/19/2025</saleDate>
            <amountOfSecuritiesSold>1600</amountOfSecuritiesSold>
            <grossProceeds>57280.00</grossProceeds>
        </securitiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>David O'Neil</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>Espey Common</securitiesClassTitle>
            <saleDate>05/15/2025</saleDate>
            <amountOfSecuritiesSold>2000</amountOfSecuritiesSold>
            <grossProceeds>72316.81</grossProceeds>
        </securitiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>DAVID A. ONEIL</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>05/15/2025</saleDate>
            <amountOfSecuritiesSold>2000</amountOfSecuritiesSold>
            <grossProceeds>73042.80</grossProceeds>
        </securitiesSoldInPast3Months>
        <noticeSignature>
            <noticeDate>05/21/2025</noticeDate>
            <planAdoptionDates/>
            <signature>/s/ David O'Neil</signature>
        </noticeSignature>
    </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 8133}]
144
0001196650
XXXXXXXX
LIVE
0000033533
ESPEY MANUFACTURING & ELECTRONICS CORP.
001-04383
233 Ballston Avenue
Saratoga Springs
NY
12866
(518) 245-4400
DAVID O'NEIL
Officer
Common
Morgan Stanley Smith Barney LLC Executive Financial Services
1 New York Plaza
8th Floor
New York
NY
10004
314
11304.00
2831399
05/21/2025
NYSE
Common
09/13/2007
Exercise of options under a registered plan
Issuer
N
314
09/13/2007
Cash
N
DAVID O'NEIL
233 Ballston Avenue
Saratoga Springs
NY
12866
Common
05/20/2025
687
24735.78
DAVID O'NEIL
233 Ballston Avenue
Saratoga Springs
NY
12866
Common
05/19/2025
1000
35800.00
DAVID O'NEIL
233 Ballston Avenue
Saratoga Springs
NY
12866
Common
05/19/2025
800
28640.00
DAVID O'NEIL
233 Ballston Avenue
Saratoga Springs
NY
12866
Common
05/19/2025
1600
57280.00
DAVID O'NEIL
233 Ballston Avenue
Saratoga Springs
NY
12866
Common
05/19/2025
1600
57280.00
David O'Neil
233 Ballston Avenue
Saratoga Springs
NY
12866
Espey Common
05/15/2025
2000
72316.81
DAVID A. ONEIL
233 Ballston Avenue
Saratoga Springs
NY
12866
Common
05/15/2025
2000
73042.80
05/21/2025
/s/ David O'Neil