content: <HTML><HEAD>
  <TITLE>S-8</TITLE>
  </HEAD>
   <BODY BGCOLOR="WHITE" STYLE="line-height:Normal">
  
  
  <Center><DIV STYLE="width:8.5in" align="left">
   <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>As filed with the Securities and Exchange Commission on May&nbsp;1, 2025 </B></P>
  <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="right"><B>Registration No.&nbsp;333-&#8195;&#8195;&#8195;&#8195;&#8195; </B></P>
  <P STYLE="font-size:4pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P><DIV STYLE="line-height:1.0pt;margin-top:0pt;margin-bottom:0pt;border-bottom:1px solid #000000">&nbsp;
  </DIV><DIV STYLE="line-height:3.0pt;margin-top:0pt;margin-bottom:2pt;border-bottom:1px solid #000000">&nbsp;</DIV> <P STYLE="margin-top:4pt; margin-bottom:0pt; font-size:18pt; font-family:Times New Roman" ALIGN="center"><B>UNITED STATES </B></P>
  <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:18pt; font-family:Times New Roman" ALIGN="center"><B>SECURITIES AND EXCHANGE COMMISSION </B></P>
  <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:12pt; font-family:Times New Roman" ALIGN="center"><B>Washington, D.C. 20549 </B></P>
  <P STYLE="font-size:12pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P><center><DIV STYLE="line-height:6.0pt;margin-top:0pt;margin-bottom:2pt;border-bottom:1.00pt solid #000000;width:21%">&nbsp;</DIV></center>
  <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:18pt; font-family:Times New Roman" ALIGN="center"><B>FORM <FONT STYLE="white-space:nowrap">S-8</FONT> </B></P>
  <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:18pt; font-family:Times New Roman" ALIGN="center"><B>REGISTRATION STATEMENT </B></P>
  <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:12pt; font-family:Times New Roman" ALIGN="center"><B><I>UNDER </I></B></P> <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:12pt; font-family:Times New Roman" ALIGN="center"><B><I>THE
  SECURITIES ACT OF 1933 </I></B></P> <P STYLE="font-size:12pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P><center><DIV STYLE="line-height:6.0pt;margin-top:0pt;margin-bottom:2pt;border-bottom:1.00pt solid #000000;width:21%">&nbsp;</DIV></center>
  <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:24pt; font-family:Times New Roman" ALIGN="center"><B>MID PENN BANCORP, INC. </B></P>
  <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>(Exact name of registrant as specified in its charter) </B></P>
  <P STYLE="font-size:12pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P><center><DIV STYLE="line-height:6.0pt;margin-top:0pt;margin-bottom:2pt;border-bottom:1.00pt solid #000000;width:21%">&nbsp;</DIV></center>
  <P STYLE="font-size:12pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P>
  <TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%" BORDER="0" STYLE="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:8pt" ALIGN="center">
  
  
  <TR>
  
  <TD WIDTH="50%"></TD>
  
  <TD VALIGN="bottom" WIDTH="1%"></TD>
  <TD WIDTH="48%"></TD></TR>
  
  
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="top" ALIGN="center"><B>Pennsylvania</B></TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="top" ALIGN="center"><B><FONT STYLE="white-space:nowrap">25-1666413</FONT></B></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt">
  <TD VALIGN="top" ALIGN="center"> <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:8pt; font-family:Times New Roman" ALIGN="center"><B>(State or other jurisdiction of</B></P>
  <P STYLE="margin-top:0pt; margin-bottom:1pt; font-size:8pt; font-family:Times New Roman" ALIGN="center"><B>incorporation)</B></P></TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="top" ALIGN="center"> <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:8pt; font-family:Times New Roman" ALIGN="center"><B>(I.R.S. Employer</B></P>
  <P STYLE="margin-top:0pt; margin-bottom:1pt; font-size:8pt; font-family:Times New Roman" ALIGN="center"><B>Identification Number)</B></P></TD></TR>
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="16"></TD>
  <TD HEIGHT="16" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="top" ALIGN="center"><B>2407 Park Drive, Harrisburg, PA</B></TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom" ALIGN="center"><B>17110</B></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt">
  <TD VALIGN="top" ALIGN="center"><B>(Address of principal executive offices)</B></TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="top" ALIGN="center"><B>(Zip code)</B></TD></TR>
  </TABLE> <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>William Penn Bancorporation 2022 Equity Incentive Plan </B></P>
  <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:8pt; font-family:Times New Roman" ALIGN="center"><B>(Full title of the plans) </B></P>
  <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>Rory G. Ritrievi, President&nbsp;&amp; CEO </B></P>
  <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>Mid Penn Bancorp, Inc. </B></P>
  <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>2407 Park Drive </B></P>
  <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>Harrisburg, Pennsylvania 17110 </B></P>
  <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:8pt; font-family:Times New Roman" ALIGN="center"><B>(Name and address of agent for service) </B></P>
  <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>(717) <FONT STYLE="white-space:nowrap">692-7105</FONT> </B></P>
  <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:8pt; font-family:Times New Roman" ALIGN="center"><B>(Telephone number, including area code, of agent for service) </B></P>
  <P STYLE="font-size:12pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P><center><DIV STYLE="line-height:6.0pt;margin-top:0pt;margin-bottom:2pt;border-bottom:1.00pt solid #000000;width:21%">&nbsp;</DIV></center>
  <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B><I>Copies to: </I></B></P>
  <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>Kenneth J. Rollins, Esquire </B></P>
  <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>Pillar Aught LLC </B></P> <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>4201 E.
  Park Circle </B></P> <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>Harrisburg, Pennsylvania 17111 </B></P>
  <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>(717) <FONT STYLE="white-space:nowrap">308-9910</FONT> </B></P>
  <P STYLE="font-size:12pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P><center><DIV STYLE="line-height:6.0pt;margin-top:0pt;margin-bottom:2pt;border-bottom:1.00pt solid #000000;width:21%">&nbsp;</DIV></center>
  <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman">Indicate by check mark whether the registrant is a large accelerated filer, an accelerated filer, a <FONT STYLE="white-space:nowrap">non-accelerated</FONT>
  filer, a smaller reporting company or an emerging growth company. See the definitions of &#147;large accelerated filer,&#148; &#147;accelerated filer,&#148; &#147;smaller reporting company&#148; and &#147;emerging growth company&#148; in Rule <FONT
  STYLE="white-space:nowrap">12b-2</FONT> of the Exchange Act. </P> <P STYLE="font-size:12pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P>
  <TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%" BORDER="0" STYLE="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt" ALIGN="center">
  
  
  <TR>
  
  <TD WIDTH="17%"></TD>
  
  <TD VALIGN="bottom" WIDTH="1%"></TD>
  <TD WIDTH="57%"></TD>
  
  <TD VALIGN="bottom" WIDTH="1%"></TD>
  <TD WIDTH="21%"></TD>
  
  <TD VALIGN="bottom" WIDTH="1%"></TD>
  <TD WIDTH="2%"></TD></TR>
  
  
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom">Large&nbsp;accelerated&nbsp;filer</TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom">&#9744;</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom">Accelerated&nbsp;filer</TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom">&#9746;</TD></TR>
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="8"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom">Non-accelerated filer</TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom">&#9744;</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom">Smaller&nbsp;reporting&nbsp;company</TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom">&#9744;</TD></TR>
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="8"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom">Emerging&nbsp;Growth&nbsp;Company</TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom">&#9744;</TD></TR>
  </TABLE> <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman">If an emerging growth company, indicate by check mark if the registrant has elected not to use the extended transition period
  for complying with any new or revised financial accounting standards provided pursuant to Section&nbsp;7(a)(2)(B) of the Securities Act.&#8194;&#9744; </P>
  <P STYLE="font-size:10pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P><DIV STYLE="line-height:1.0pt;margin-top:0pt;margin-bottom:0pt;border-bottom:1px solid #000000">&nbsp;
  </DIV><DIV STYLE="line-height:3.0pt;margin-top:0pt;margin-bottom:2pt;border-bottom:1px solid #000000">&nbsp;</DIV>
  </DIV></Center>
  
  
  <p style="margin-top:1em; margin-bottom:0em; page-break-before:always"> </p>
  <HR SIZE="3" style="COLOR:#999999" WIDTH="100%" ALIGN="CENTER">
  
  
  <Center><DIV STYLE="width:8.5in" align="left">
   <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>PART I </B></P>
  <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>INFORMATION REQUIRED IN THE SECTION 10(A) PROSPECTUS </B></P>
  <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman">On April&nbsp;30, 2025, in accordance with the terms and conditions of the Agreement and Plan of Merger, by and between Mid Penn Bancorp, Inc. (the
  &#147;Company&#148;) and William Penn Bancorporation (&#147;William Penn&#148;), dated as of October&nbsp;31, 2024, William Penn merged with and into the Company (the &#147;Merger&#148;), with the Company surviving the Merger. </P>
  <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman">Pursuant to the terms of the Merger Agreement, at the effective time of the Merger, each outstanding option to purchase shares of William Penn common stock
  under the William Penn Bancorporation 2022 Equity Incentive Plan (the &#147;Plan&#148;) was converted into an option to purchase shares of common stock, $1.00 par value per share of the Company, in accordance with and pursuant to the terms and
  conditions of the Merger Agreement. Immediately after the consummation of the Merger on April&nbsp;30, 2025, the options issued under the Plan and assumed by the Company pursuant to the Merger Agreement were exercisable for 538,464 shares of the
  Company&#146;s common stock, $1.00 par value. </P> <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman">The documents containing the information for the Plan specified by Part I of this Registration Statement
  will be sent or given to the participants in the Plan as specified by Rule 428(b)(1) of the Securities Act of 1933, as amended (the &#147;Securities Act of 1933&#148;). Such documents need not be filed with the Securities and Exchange Commission
  (the &#147;Commission&#148;) either as part of this Registration Statement on Form <FONT STYLE="white-space:nowrap">S-8</FONT> (the &#147;Registration Statement&#148;) or as prospectuses or prospectus supplements pursuant to Rule 424 of the
  Securities Act of 1933. Such documents incorporated by reference pursuant to Item 3 of Part II of this Registration Statement, taken together, constitute a prospectus for the Registration Statement. </P>
  <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>PART II </B></P> <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>INFORMATION
  REQUIRED IN THE REGISTRATION STATEMENT </B></P> <P STYLE="font-size:12pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P>
  <TABLE STYLE="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt" BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
  <TR style = "page-break-inside:avoid">
  <TD WIDTH="10%" VALIGN="top" ALIGN="left"><B>Item&#8201;3.</B></TD>
  <TD ALIGN="left" VALIGN="top"> <P STYLE=" margin-top:0pt ; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman; " ALIGN="left"><B>Incorporation of Documents by Reference. </B></P></TD></TR></TABLE>
  <P STYLE="margin-top:12pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">The Company hereby incorporates by reference into this registration statement the following documents previously filed with the Commission:
  </P> <P STYLE="font-size:6pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P>
  <TABLE STYLE="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt" BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
  <TR style = "page-break-inside:avoid">
  <TD WIDTH="4%">&nbsp;</TD>
  <TD WIDTH="5%" VALIGN="top" ALIGN="left">(a)</TD>
  <TD ALIGN="left" VALIGN="top"> <P STYLE=" margin-top:0pt ; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman; " ALIGN="left">The Company&#146;s Annual Report on <A HREF="http://www.sec.gov/Archives/edgar/data/../../../ix?doc=/Archives/edgar/data/0000879635/000087963525000030/mpb-20241231.htm">Form
   <FONT STYLE="white-space:nowrap">10-K</FONT></A> for the year ended December&nbsp;31, 2024, filed with the Commission on March&nbsp;13, 2025. </P></TD></TR></TABLE> <P STYLE="font-size:6pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P>
  <TABLE STYLE="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt" BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
  <TR style = "page-break-inside:avoid">
  <TD WIDTH="4%">&nbsp;</TD>
  <TD WIDTH="5%" VALIGN="top" ALIGN="left">(b)</TD>
  <TD ALIGN="left" VALIGN="top"> <P STYLE=" margin-top:0pt ; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman; " ALIGN="left">The Company&#146;s Current Reports on Form <FONT STYLE="white-space:nowrap">8-K</FONT> filed with the
  Commission on <A HREF="http://www.sec.gov/Archives/edgar/data/../../../ix?doc=/Archives/edgar/data/0000879635/000087963525000015/mpb-20250122.htm">January&nbsp;
  22, 2025</A>, <A HREF="http://www.sec.gov/Archives/edgar/data/../../../ix?doc=/Archives/edgar/data/0000879635/000087963525000017/mpb-20250122.htm">January&nbsp;
  24, 2025</A>, <A HREF="http://www.sec.gov/Archives/edgar/data/../../../ix?doc=/Archives/edgar/data/0000879635/000087963525000025/mpb-20250225.htm">February&nbsp;
  25, 2025</A> (filed portion only), <A HREF="http://www.sec.gov/Archives/edgar/data/../../../ix?doc=/Archives/edgar/data/0000879635/000087963525000036/mpb-20250328.htm">March&nbsp;
  28, 2025</A>, <A HREF="http://www.sec.gov/Archives/edgar/data/../../../ix?doc=/Archives/edgar/data/0000879635/000087963525000054/mpb-20250402.htm">April&nbsp;
  2, 2025</A> (filed portion only), <A HREF="http://www.sec.gov/Archives/edgar/data/../../../ix?doc=/Archives/edgar/data/0000879635/000087963525000051/mpb-20250402.htm">April&nbsp;2, 2025</A>, and May&nbsp;1, 2025. </P></TD></TR></TABLE>
  <P STYLE="font-size:6pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P>
  <TABLE STYLE="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt" BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
  <TR style = "page-break-inside:avoid">
  <TD WIDTH="4%">&nbsp;</TD>
  <TD WIDTH="5%" VALIGN="top" ALIGN="left">(c)</TD>
  <TD ALIGN="left" VALIGN="top"> <P STYLE=" margin-top:0pt ; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman; " ALIGN="left">The description of the Company&#146;s common stock set forth in <A HREF="http://www.sec.gov/Archives/edgar/data/879635/000119312525008431/d518638dex41.htm">Exhibit
   4.1</A> of the Company&#146;s Registration Statement on Form <FONT STYLE="white-space:nowrap">S-4</FONT> filed with the Commission on January&nbsp;17, 2025, and any amendment or report filed for the purpose of updating such description.
  </P></TD></TR></TABLE> <P STYLE="margin-top:12pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">All documents subsequently filed by the Company with the Commission pursuant to Sections 13(a), 13(c), 14, or 15(d) of
  the Exchange Act, after the date hereof, and prior to the filing of a post-effective amendment which indicates that all shares of common stock offered hereby have been sold or which deregisters all securities then remaining unsold, shall be deemed
  to be incorporated by reference into this Registration Statement and to be a part thereof from the date of the filing of such documents.</P>
  </DIV></Center>
  
  
  <p style="margin-top:1em; margin-bottom:0em; page-break-before:always"> </p>
  <HR SIZE="3" style="COLOR:#999999" WIDTH="100%" ALIGN="CENTER">
  
  
  <Center><DIV STYLE="width:8.5in" align="left">
   <P STYLE="margin-top:0pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">Any statement contained in the documents incorporated, or deemed to be incorporated, by
  reference herein or therein shall be deemed to be modified or superseded for purposes of this Registration Statement to the extent that a statement contained herein or therein or in any other subsequently filed document which also is, or is deemed
  to be, incorporated by reference herein or therein modifies or supersedes such statement. Any such statement so modified or superseded shall not be deemed, except as so modified or superseded, to constitute a part of this Registration Statement.
  Under no circumstances will any information filed under current Items 2.02 or 7.01 of Form <FONT STYLE="white-space:nowrap">8-K,</FONT> and exhibits furnished on such form that relate to such items, be deemed incorporated herein by reference unless
  such Form <FONT STYLE="white-space:nowrap">8-K</FONT> expressly provides to the contrary. </P> <P STYLE="margin-top:12pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">All information appearing in this Registration
  Statement is qualified in its entirety by the detailed information, including financial statements, appearing in the documents incorporated herein or therein by reference. </P> <P STYLE="font-size:18pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P>
  <TABLE STYLE="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt" BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
  <TR style = "page-break-inside:avoid">
  <TD WIDTH="10%" VALIGN="top" ALIGN="left"><B>Item&#8201;4.</B></TD>
  <TD ALIGN="left" VALIGN="top"> <P STYLE=" margin-top:0pt ; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman; " ALIGN="left"><B>Description of Securities. </B></P></TD></TR></TABLE>
  <P STYLE="margin-top:6pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">Not applicable. </P> <P STYLE="font-size:18pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P>
  <TABLE STYLE="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt" BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
  <TR style = "page-break-inside:avoid">
  <TD WIDTH="10%" VALIGN="top" ALIGN="left"><B>Item&#8201;5.</B></TD>
  <TD ALIGN="left" VALIGN="top"> <P STYLE=" margin-top:0pt ; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman; " ALIGN="left"><B>Interest of Named Experts and Counsel </B></P></TD></TR></TABLE>
  <P STYLE="margin-top:6pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">Not applicable. </P> <P STYLE="font-size:18pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P>
  <TABLE STYLE="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt" BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
  <TR style = "page-break-inside:avoid">
  <TD WIDTH="10%" VALIGN="top" ALIGN="left"><B>Item&#8201;6.</B></TD>
  <TD ALIGN="left" VALIGN="top"> <P STYLE=" margin-top:0pt ; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman; " ALIGN="left"><B>Indemnification of Directors and Officers </B></P></TD></TR></TABLE>
  <P STYLE="margin-top:6pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">Subchapter D of Chapter&nbsp;17 of the Pennsylvania Business Corporation Law of 1988, as amended, provides that a business corporation has the
  power under certain circumstances to indemnify its directors, officers, employees and agents against certain expenses incurred by them in connection with any threatened, pending or completed action, suit or proceeding and provides for mandatory
  indemnification under certain circumstances when the indemnified person has been successful in defense of a claim. </P> <P STYLE="margin-top:12pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">Article 24 of
  Registrant&#146;s bylaws provides as follows: </P> <P STYLE="margin-top:12pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">Section&nbsp;24.1 (Indemnification) To the fullest extent permitted by applicable law, the
  Corporation shall indemnify any person who was or is a party or is threatened to be made a party to any threatened, pending, or completed action, suit, or proceeding, whether civil, criminal, administrative, or investigative by reason of the fact
  that such person is or was a director, officer, employee, or agent of the Corporation, or is or was serving at the request of the Corporation as a director, officer, employee, or agent of another corporation, partnership, joint venture, trust, or
  other enterprise (which shall include, without limitation, employee benefit plans), against expenses (including attorney&#146;s fees), amounts paid in settlement, judgments, and fines (including without limitation, excise taxes related to employee
  benefit plans) actually and reasonably incurred by such person in connection with such action, suit, or proceeding; provided, however, that no indemnification shall be made in any case where the act or failure to act giving rise to the claim for
  indemnification is determined by a court to have constituted willful misconduct or recklessness. </P> <P STYLE="margin-top:12pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">Section&nbsp;24.2 (Advancement of
  Expenses) To the fullest extent permitted by applicable law, expenses (including attorneys&#146; fees) incurred in defending a civil or criminal action, suit, or proceeding shall be paid by the Corporation in advance of the final disposition of such
  action, suit, or proceeding upon receipt of an undertaking by or on behalf of the director, officer, employee, or agent to repay such amount if it shall be ultimately determined that he is not entitled to be indemnified by the Corporation as
  authorized in this Article 24. </P> <P STYLE="margin-top:12pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">Section&nbsp;24.3 (Nonexclusivity) The indemnification provided by this Article 24 shall not be deemed
  exclusive of any other right to which persons seeking indemnification may be entitled under any agreement, vote of shareholders or disinterested directors, or otherwise, both as to actions in such persons&#146; official capacity and as to their
  actions in another capacity while holding office, and shall continue as to a person who has ceased to be a director, officer, employee, or agent and shall inure to the benefit of the heirs, executors, and administrators of such person. </P>
  </DIV></Center>
  
  
  <p style="margin-top:1em; margin-bottom:0em; page-break-before:always"> </p>
  <HR SIZE="3" style="COLOR:#999999" WIDTH="100%" ALIGN="CENTER">
  
  
  <Center><DIV STYLE="width:8.5in" align="left">
   <P STYLE="margin-top:0pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">Section&nbsp;24.4 (Insurance) The Corporation may purchase and maintain insurance on behalf
  of any person who is or was a director, officer, employee, or agent of the Corporation, or is or was serving at the request of the Corporation as a director, officer, employee, or agent of another corporation, partnership, joint venture, or other
  enterprise against any liability asserted against such person and incurred by such person in any such capacity, or arising out of such person&#146;s status as such, whether or not the Corporation would have the power to indemnify such person against
  such liability under the provisions of this Article 24. </P> <P STYLE="font-size:18pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P>
  <TABLE STYLE="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt" BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
  <TR style = "page-break-inside:avoid">
  <TD WIDTH="10%" VALIGN="top" ALIGN="left"><B>Item&#8201;7.</B></TD>
  <TD ALIGN="left" VALIGN="top"> <P STYLE=" margin-top:0pt ; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman; " ALIGN="left"><B>Exemption from Registration Claimed. </B></P></TD></TR></TABLE>
  <P STYLE="margin-top:6pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">Not applicable. </P> <P STYLE="font-size:18pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P>
  <TABLE STYLE="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt" BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
  <TR style = "page-break-inside:avoid">
  <TD WIDTH="10%" VALIGN="top" ALIGN="left"><B>Item&#8201;8.</B></TD>
  <TD ALIGN="left" VALIGN="top"> <P STYLE=" margin-top:0pt ; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman; " ALIGN="left"><B>Exhibits. </B></P></TD></TR></TABLE> <P STYLE="font-size:12pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P>
  <TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%" BORDER="0" STYLE="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt" ALIGN="center">
  
  
  <TR>
  
  <TD></TD>
  
  <TD VALIGN="bottom" WIDTH="6%"></TD>
  <TD WIDTH="90%"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt">
  <TD VALIGN="bottom" NOWRAP ALIGN="center"> <P STYLE=" margin-top:0pt ; margin-bottom:0pt; border-bottom:1.00pt solid #000000; display:table-cell; font-size:8pt; font-family:Times New Roman; " ALIGN="center">Exhibit&nbsp;No.</P></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom" NOWRAP> <P STYLE=" margin-top:0pt ; margin-bottom:0pt; border-bottom:1.00pt solid #000000; display:table-cell; font-size:8pt; font-family:Times New Roman; ">Document</P></TD></TR>
  
  
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="8"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="top" NOWRAP>4.1</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="top">The Registrant&#146;s Articles of Incorporation, as amended, incorporated by reference to <A HREF="http://www.sec.gov/Archives/edgar/data/879635/000087963523000035/mpb-20230331xexx31xq.htm">Exhibit 3(i)</A> to Registrant&#146;s
  Quarterly Report on Form <FONT STYLE="white-space:nowrap">10-Q</FONT> filed for the quarterly period ended March&nbsp;31, 2024</TD></TR>
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="8"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="top" NOWRAP>4.2</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="top">The Registrant&#146;s <FONT STYLE="white-space:nowrap">By-laws,</FONT> incorporated by reference to <A HREF="http://www.sec.gov/Archives/edgar/data/879635/000087963524000049/mpb-20231231xexx31.htm">Exhibit 3(ii)</A> of the
  Registrant&#146;s Annual report on Form <FONT STYLE="white-space:nowrap">10-K</FONT> filed with the SEC on March&nbsp;28, 2024</TD></TR>
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="8"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="top" NOWRAP>5.1</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="top"><A HREF="d133142dex51.htm">Opinion of Pillar Aught LLC </A></TD></TR>
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="8"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="top" NOWRAP>10.1</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="top"><A HREF="d133142dex101.htm">William Penn Bancorporation 2022 Equity Incentive Plan </A></TD></TR>
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="8"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="top" NOWRAP>23.1</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="top"><A HREF="d133142dex51.htm">Consent of Pillar Aught LLC (contained in Exhibit 5.1 hereto) </A></TD></TR>
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="8"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="top" NOWRAP>23.2</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="top"><A HREF="d133142dex232.htm">Consent of RSM US LLP </A></TD></TR>
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="8"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="top" NOWRAP>24.1</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="top"><A HREF="#sig">Powers of Attorney (included on the signature page of this registration statement) </A></TD></TR>
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="8"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="top" NOWRAP>107.1</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="top"><A HREF="d133142dexfilingfees.htm">Filing Fee Table </A></TD></TR>
  </TABLE> <P STYLE="font-size:18pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P>
  <TABLE STYLE="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt" BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
  <TR style = "page-break-inside:avoid">
  <TD WIDTH="10%" VALIGN="top" ALIGN="left"><B>Item&#8201;9.</B></TD>
  <TD ALIGN="left" VALIGN="top"> <P STYLE=" margin-top:0pt ; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman; " ALIGN="left"><B>Undertakings. </B></P></TD></TR></TABLE>
  <P STYLE="margin-top:6pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">(a) The Company hereby undertakes: </P>
  <P STYLE="margin-top:6pt; margin-bottom:0pt; margin-left:4%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(1) To file, during any period in which offers or sales are being made, a post-effective amendment to this registration
  statement: </P> <P STYLE="margin-top:6pt; margin-bottom:0pt; margin-left:9%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(i) To include any prospectus required by section 10(a)(3) of the Securities Act of 1933; </P>
  <P STYLE="margin-top:6pt; margin-bottom:0pt; margin-left:9%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(ii) To reflect in the prospectus any facts or events arising after the effective date of the registration statement (or the
  most recent post-effective amendment thereof) which, individually or in the aggregate, represent a fundamental change in the information set forth in the registration statement. Notwithstanding the foregoing, any increase or decrease in volume of
  securities offered (if the total dollar value of securities offered would not exceed that which was registered) and any deviation from the low or high end of the estimated maximum offering range may be reflected in the form of prospectus filed with
  the Commission pursuant to Rule 424(b) (&#167; 230.424(b) of this chapter if, in the aggregate, the changes in volume and price represent no more than 20% change in the maximum aggregate offering price set forth in the &#147;Calculation of Filing
  Fee Tables&#148; or &#147;Calculation of Registration Fee&#148; table, as applicable, in the effective registration statement. </P>
  </DIV></Center>
  
  
  <p style="margin-top:1em; margin-bottom:0em; page-break-before:always"> </p>
  <HR SIZE="3" style="COLOR:#999999" WIDTH="100%" ALIGN="CENTER">
  
  
  <Center><DIV STYLE="width:8.5in" align="left">
   <P STYLE="margin-top:0pt; margin-bottom:0pt; margin-left:9%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(iii) To include any material information with respect to the plan of
  distribution not previously disclosed in the registration statement or any material change to such information in the registration statement; </P>
  <P STYLE="margin-top:12pt; margin-bottom:0pt; text-indent:9%; font-size:10pt; font-family:Times New Roman"><I>Provided, however, that</I>: </P>
  <P STYLE="margin-top:6pt; margin-bottom:0pt; margin-left:13%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(A) Paragraphs (a)(1)(i) and (a)(1)(ii) and of this section do not apply if the registration statement is on Form <FONT
  STYLE="white-space:nowrap">S-8</FONT> (&#167;239.16b of this chapter), and the information required to be included in a post-effective amendment by those paragraphs is contained in reports filed with or furnished to the Commission by the registrant
  pursuant to section 13 or section 15(d) of the Securities Exchange Act of 1934 (15 U.S.C. 78m or 78o(d)) that are incorporated by reference in the registration statement; and </P>
  <P STYLE="margin-top:6pt; margin-bottom:0pt; margin-left:13%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(B) Paragraphs (a)(1)(ii), (ii), (iii) of this section do not apply if the registration statement is on Form <FONT
  STYLE="white-space:nowrap">S-1</FONT> (&#167; 239.11 of this chapter), Form <FONT STYLE="white-space:nowrap">S-3</FONT> (&#167; 239.13 of this chapter), Form <FONT STYLE="white-space:nowrap">SF-3</FONT> (&#167; 239.45 of this chapter) or Form <FONT
  STYLE="white-space:nowrap">F-3</FONT> (&#167; 239.33 of this chapter) and the information required to be included in a post-effective amendment by those paragraphs is contained in reports filed with or furnished to the Commission by the registrant
  pursuant to section 13 or section 15(d) of the Securities Exchange Act of 1934 (15 U.S.C. 78m or 78o(d)) that are incorporated by reference in the registration statement, or, as to a registration statement on Form
  <FONT STYLE="white-space:nowrap">S-3,</FONT> Form <FONT STYLE="white-space:nowrap">SF-3</FONT> or Form <FONT STYLE="white-space:nowrap">F-3,</FONT> is contained in a form of prospectus filed pursuant to &#167;230.424(b) of this chapter that is part
  of the registration statement. </P> <P STYLE="margin-top:6pt; margin-bottom:0pt; margin-left:13%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(C) <I>Provided further, however</I> , that paragraphs (a)(1)(i) and (a)(1)(ii) do not
  apply if the registration statement is for an offering of asset-backed securities on Form <FONT STYLE="white-space:nowrap">SF-1</FONT> (&#167;239.44 of this chapter) or Form <FONT STYLE="white-space:nowrap">SF-3</FONT> (&#167; 239.45 of this
  chapter), and the information required to be included in a post-effective amendment is provided pursuant to Item 1100(c) of Regulation AB (&#167; 229.1100(c)). </P>
  <P STYLE="margin-top:6pt; margin-bottom:0pt; margin-left:4%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(2) That, for the purpose of determining any liability under the Securities Act of 1933, each such post-effective amendment
  shall be deemed to be a new registration statement relating to the securities offered therein, and the offering of such securities at that time shall be deemed to be the initial bona fide offering thereof. </P>
  <P STYLE="margin-top:6pt; margin-bottom:0pt; margin-left:4%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(3) To remove from registration by means of a post-effective amendment any of the securities being registered which remain
  unsold at the termination of the offering. </P>
  </DIV></Center>
  
  
  <p style="margin-top:1em; margin-bottom:0em; page-break-before:always"> </p>
  <HR SIZE="3" style="COLOR:#999999" WIDTH="100%" ALIGN="CENTER">
  
  
  <Center><DIV STYLE="width:8.5in" align="left">
   <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>SIGNATURES </B></P>
  <P STYLE="margin-top:12pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">Pursuant to the requirements of the Securities Act of 1933, the Registrant certifies that it has reasonable grounds to believe that it meets
  all of the requirements for filing on Form <FONT STYLE="white-space:nowrap">S-8</FONT> and has duly caused this Registration Statement to be signed on its behalf by the undersigned, thereunto duly authorized, in the City of Harrisburg, Commonwealth
  of Pennsylvania, on May&nbsp;1, 2025. </P> <P STYLE="font-size:12pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P><DIV ALIGN="right">
  <TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="40%" BORDER="0" STYLE="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt">
  
  
  <TR>
  
  <TD WIDTH="7%"></TD>
  
  <TD VALIGN="bottom" WIDTH="1%"></TD>
  <TD WIDTH="92%"></TD></TR>
  
  
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="top" COLSPAN="3">MID PENN BANCORP, INC.</TD></TR>
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="16"></TD>
  <TD HEIGHT="16" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="top">By:</TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="top"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ Rory G. Ritrievi</P></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="top"></TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="top">Rory G. Ritrievi</TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="top"></TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="top">President and Chief Executive Officer</TD></TR>
  </TABLE></DIV>
  </DIV></Center>
  
  
  <p style="margin-top:1em; margin-bottom:0em; page-break-before:always"> </p>
  <HR SIZE="3" style="COLOR:#999999" WIDTH="100%" ALIGN="CENTER">
  
  
  <Center><DIV STYLE="width:8.5in" align="left">
   <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B><A NAME="sig"></A>POWER OF ATTORNEY </B></P>
  <P STYLE="margin-top:12pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">KNOWN ALL MEN BY THESE PRESENTS, that each of the undersigned directors and officers of Mid Penn Bancorp, Inc., a Pennsylvania corporation
  (the &#147;Company&#148;), constitutes and appoints Rory G. Ritrievi and Justin T. Webb with full power of each of them to act alone, as the true and lawful
  <FONT STYLE="white-space:nowrap"><FONT STYLE="white-space:nowrap">attorneys-in-fact</FONT></FONT> and agents of the undersigned, with full power of substitution and resubstitution for him or her and in his or her name, place and stead, in any and
  all capacities, to sign any and all amendments (including <FONT STYLE="white-space:nowrap">pre-effective</FONT> and post-effective amendments) to this Registration Statement and to sign any registration statement (and any post-effective amendments
  thereto) effective upon filing pursuant to Rule 462(b) under the Securities Act of 1933, and to file the same, with all exhibits thereto, and other documents in connection therewith, with the Securities and Exchange Commission, granting unto said <FONT
  STYLE="white-space:nowrap"><FONT STYLE="white-space:nowrap">attorney-in-fact</FONT></FONT> and agent full power and authority to do and perform each and every act and thing requisite and necessary to be done in and about the premises, as fully to
  all intents and purposed as he or she might or could do in person, hereby ratifying and confirming that said <FONT STYLE="white-space:nowrap"><FONT STYLE="white-space:nowrap">attorney-in-fact,</FONT></FONT> agent or his or her substitutes may
  lawfully do or cause to be done by virtue hereof. </P> <P STYLE="margin-top:12pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">Pursuant to the requirements of the Securities Act of 1933, as amended, this
  Registration Statement has been signed by the following persons in the capacities indicated on April&nbsp;30, 2025. </P> <P STYLE="font-size:12pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P>
  <TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%" BORDER="0" STYLE="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt" ALIGN="center">
  
  
  <TR>
  
  <TD WIDTH="43%"></TD>
  
  <TD VALIGN="bottom" WIDTH="1%"></TD>
  <TD WIDTH="7%"></TD>
  
  <TD VALIGN="bottom" WIDTH="1%"></TD>
  <TD WIDTH="40%"></TD>
  
  <TD VALIGN="bottom" WIDTH="1%"></TD>
  <TD WIDTH="7%"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt">
  <TD VALIGN="bottom" NOWRAP> <P STYLE=" margin-top:0pt ; margin-bottom:0pt; border-bottom:1.00pt solid #000000; display:table-cell; font-size:8pt; font-family:Times New Roman; ">Signature</P></TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom" ALIGN="center" STYLE="border-bottom:1.00pt solid #000000"> <P STYLE="margin-top:0pt; margin-bottom:1pt; font-size:8pt; font-family:Times New Roman" ALIGN="center">Capacity</P></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom">&nbsp;</TD></TR>
  
  
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="8"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ Rory G. Ritrievi</P></TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom">&#8195;&#8195;&#8195;&#8195;</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom">Chair, President and Chief Executive Officer</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom">&#8195;&#8195;&#8195;&#8195;</TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom">Rory G. Ritrievi</TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom">(Principal Executive Officer)</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD></TR>
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="8"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ Justin T. Webb</P></TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom">Chief Financial Officer</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom">Justin T. Webb</TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom">(Principal Financial Officer)</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD></TR>
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="8"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ Robert A. Abel</P></TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom">Director</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom">Robert A. Abel</TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD></TR>
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="8"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ Kimberly J. Brumbaugh</P></TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom">Director</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom">Kimberly J. Brumbaugh</TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD></TR>
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="8"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ Matthew G. DeSoto</P></TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom">Director</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom">Matthew G. DeSoto</TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD></TR>
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="8"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ Albert J. Evans</P></TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom">Director</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom">Albert J. Evans</TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD></TR>
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="8"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ Joel L. Frank</P></TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom">Director</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom">Joel L. Frank</TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD></TR>
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="8"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ Maureen M. Gathagan</P></TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom">Director</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom">Maureen M. Gathagan</TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD></TR>
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="8"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ Brian A. Hudson, Sr.</P></TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom">Director</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom">Brian A. Hudson, Sr.</TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD></TR>
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="8"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ Bruce A. Kiefer</P></TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom">Director</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="bottom">Bruce A. Kiefer</TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="bottom"></TD></TR></TABLE>
  </DIV></Center>
  
  
  <p style="margin-top:1em; margin-bottom:0em; page-break-before:always"> </p>
  <HR SIZE="3" style="COLOR:#999999" WIDTH="100%" ALIGN="CENTER">
  
  
  <Center><DIV STYLE="width:8.5in" align="left">
  
  <TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%" BORDER="0" STYLE="BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt" ALIGN="center">
  
  
  <TR>
  
  <TD WIDTH="43%"></TD>
  
  <TD VALIGN="bottom" WIDTH="1%"></TD>
  <TD WIDTH="7%"></TD>
  
  <TD VALIGN="bottom" WIDTH="1%"></TD>
  <TD WIDTH="40%"></TD>
  
  <TD VALIGN="bottom" WIDTH="1%"></TD>
  <TD WIDTH="7%"></TD></TR>
  
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="top"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ Theodore W. Mowery</P></TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="top">&#8195;&#8195;&#8195;&#8195;</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="top">Director</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="top">&#8195;&#8195;&#8195;&#8195;</TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="top">Theodore W. Mowery</TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="top"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="top"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="top"></TD></TR>
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="8"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="top"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ John E. Noone</P></TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="top"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="top">Director</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="top"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="top">John E. Noone</TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="top"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="top"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="top"></TD></TR>
  <TR STYLE="font-size:1pt">
  <TD HEIGHT="8"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD>
  <TD HEIGHT="8" COLSPAN="2"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="top"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ William A. Specht, III</P></TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="top"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="top">Director</TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="top"></TD></TR>
  <TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
  <TD VALIGN="top">William A. Specht, III</TD>
  <TD VALIGN="bottom">&nbsp;</TD>
  <TD VALIGN="top"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="top"></TD>
  <TD VALIGN="bottom">&nbsp;&nbsp;</TD>
  <TD VALIGN="top"></TD></TR>
  </TABLE>
  </DIV></Center>
  
  </BODY></HTML>
metadata_documents: [{"type": "S-8", "sequence": "1", "filename": "d133142ds8.htm", "description": "S-8", "secsgml_size_bytes": 55680}]
metadata_filer: {"company-data": {"conformed-name": "MID PENN BANCORP INC", "cik": "0000879635", "assigned-sic": "6022", "organization-name": "02 Finance", "ein": "251666413", "state-of-incorporation": "PA", "fiscal-year-end": "1231"}, "filing-values": {"form-type": "S-8", "act": "33", "file-number": "333-286886", "film-number": "25899510"}, "business-address": {"street1": "2407 PARK DRIVE", "city": "HARRISBURG", "state": "PA", "zip": "17110", "phone": "8666427736"}, "mail-address": {"street1": "2407 PARK DRIVE", "city": "HARRISBURG", "state": "PA", "zip": "17110"}}
text: S-8
  As filed with the Securities and Exchange Commission on May 1, 2025
  Registration No. 333-
  UNITED STATES
  SECURITIES AND EXCHANGE COMMISSION
  Washington, D.C. 20549
  FORM
  S-8
  REGISTRATION STATEMENT
  UNDER
  THE
  SECURITIES ACT OF 1933
  MID PENN BANCORP, INC.
  (Exact name of registrant as specified in its charter)
  Pennsylvania
  25-1666413
  (State or other jurisdiction of
  incorporation)
  (I.R.S. Employer
  Identification Number)
  2407 Park Drive, Harrisburg, PA
  17110
  (Address of principal executive offices)
  (Zip code)
  William Penn Bancorporation 2022 Equity Incentive Plan
  (Full title of the plans)
  Rory G. Ritrievi, President & CEO
  Mid Penn Bancorp, Inc.
  2407 Park Drive
  Harrisburg, Pennsylvania 17110
  (Name and address of agent for service)
  (717)
  692-7105
  (Telephone number, including area code, of agent for service)
  Copies to:
  Kenneth J. Rollins, Esquire
  Pillar Aught LLC
  4201 E.
  Park Circle
  Harrisburg, Pennsylvania 17111
  (717)
  308-9910
  Indicate by check mark whether the registrant is a large accelerated filer, an accelerated filer, a
  non-accelerated
  filer, a smaller reporting company or an emerging growth company. See the definitions of "large accelerated filer," "accelerated filer," "smaller reporting company" and "emerging growth company" in Rule
  12b-2
  of the Exchange Act.
  Large accelerated filer
  ☐
  Accelerated filer
  ☒
  Non-accelerated filer
  ☐
  Smaller reporting company
  ☐
  Emerging Growth Company
  ☐
  If an emerging growth company, indicate by check mark if the registrant has elected not to use the extended transition period
  for complying with any new or revised financial accounting standards provided pursuant to Section 7(a)(2)(B) of the Securities Act. ☐
  PART I
  INFORMATION REQUIRED IN THE SECTION 10(A) PROSPECTUS
  On April 30, 2025, in accordance with the terms and conditions of the Agreement and Plan of Merger, by and between Mid Penn Bancorp, Inc. (the
  "Company") and William Penn Bancorporation ("William Penn"), dated as of October 31, 2024, William Penn merged with and into the Company (the "Merger"), with the Company surviving the Merger.
  Pursuant to the terms of the Merger Agreement, at the effective time of the Merger, each outstanding option to purchase shares of William Penn common stock
  under the William Penn Bancorporation 2022 Equity Incentive Plan (the "Plan") was converted into an option to purchase shares of common stock, $1.00 par value per share of the Company, in accordance with and pursuant to the terms and
  conditions of the Merger Agreement. Immediately after the consummation of the Merger on April 30, 2025, the options issued under the Plan and assumed by the Company pursuant to the Merger Agreement were exercisable for 538,464 shares of the
  Company's common stock, $1.00 par value.
  The documents containing the information for the Plan specified by Part I of this Registration Statement
  will be sent or given to the participants in the Plan as specified by Rule 428(b)(1) of the Securities Act of 1933, as amended (the "Securities Act of 1933"). Such documents need not be filed with the Securities and Exchange Commission
  (the "Commission") either as part of this Registration Statement on Form
  S-8
  (the "Registration Statement") or as prospectuses or prospectus supplements pursuant to Rule 424 of the
  Securities Act of 1933. Such documents incorporated by reference pursuant to Item 3 of Part II of this Registration Statement, taken together, constitute a prospectus for the Registration Statement.
  PART II
  INFORMATION
  REQUIRED IN THE REGISTRATION STATEMENT
  Item 3.
  Incorporation of Documents by Reference.
  The Company hereby incorporates by reference into this registration statement the following documents previously filed with the Commission:
  (a)
  The Company's Annual Report on
  Form
  10-K
  for the year ended December 31, 2024, filed with the Commission on March 13, 2025.
  (b)
  The Company's Current Reports on Form
  8-K
  filed with the
  Commission on
  January 
  22, 2025
  ,
  January 
  24, 2025
  ,
  February 
  25, 2025
  (filed portion only),
  March 
  28, 2025
  ,
  April 
  2, 2025
  (filed portion only),
  April 2, 2025
  , and May 1, 2025.
  (c)
  The description of the Company's common stock set forth in
  Exhibit
   4.1
  of the Company's Registration Statement on Form
  S-4
  filed with the Commission on January 17, 2025, and any amendment or report filed for the purpose of updating such description.
  All documents subsequently filed by the Company with the Commission pursuant to Sections 13(a), 13(c), 14, or 15(d) of
  the Exchange Act, after the date hereof, and prior to the filing of a post-effective amendment which indicates that all shares of common stock offered hereby have been sold or which deregisters all securities then remaining unsold, shall be deemed
  to be incorporated by reference into this Registration Statement and to be a part thereof from the date of the filing of such documents.
  Any statement contained in the documents incorporated, or deemed to be incorporated, by
  reference herein or therein shall be deemed to be modified or superseded for purposes of this Registration Statement to the extent that a statement contained herein or therein or in any other subsequently filed document which also is, or is deemed
  to be, incorporated by reference herein or therein modifies or supersedes such statement. Any such statement so modified or superseded shall not be deemed, except as so modified or superseded, to constitute a part of this Registration Statement.
  Under no circumstances will any information filed under current Items 2.02 or 7.01 of Form
  8-K,
  and exhibits furnished on such form that relate to such items, be deemed incorporated herein by reference unless
  such Form
  8-K
  expressly provides to the contrary.
  All information appearing in this Registration
  Statement is qualified in its entirety by the detailed information, including financial statements, appearing in the documents incorporated herein or therein by reference.
  Item 4.
  Description of Securities.
  Not applicable.
  Item 5.
  Interest of Named Experts and Counsel
  Not applicable.
  Item 6.
  Indemnification of Directors and Officers
  Subchapter D of Chapter 17 of the Pennsylvania Business Corporation Law of 1988, as amended, provides that a business corporation has the
  power under certain circumstances to indemnify its directors, officers, employees and agents against certain expenses incurred by them in connection with any threatened, pending or completed action, suit or proceeding and provides for mandatory
  indemnification under certain circumstances when the indemnified person has been successful in defense of a claim.
  Article 24 of
  Registrant's bylaws provides as follows:
  Section 24.1 (Indemnification) To the fullest extent permitted by applicable law, the
  Corporation shall indemnify any person who was or is a party or is threatened to be made a party to any threatened, pending, or completed action, suit, or proceeding, whether civil, criminal, administrative, or investigative by reason of the fact
  that such person is or was a director, officer, employee, or agent of the Corporation, or is or was serving at the request of the Corporation as a director, officer, employee, or agent of another corporation, partnership, joint venture, trust, or
  other enterprise (which shall include, without limitation, employee benefit plans), against expenses (including attorney's fees), amounts paid in settlement, judgments, and fines (including without limitation, excise taxes related to employee
  benefit plans) actually and reasonably incurred by such person in connection with such action, suit, or proceeding; provided, however, that no indemnification shall be made in any case where the act or failure to act giving rise to the claim for
  indemnification is determined by a court to have constituted willful misconduct or recklessness.
  Section 24.2 (Advancement of
  Expenses) To the fullest extent permitted by applicable law, expenses (including attorneys' fees) incurred in defending a civil or criminal action, suit, or proceeding shall be paid by the Corporation in advance of the final disposition of such
  action, suit, or proceeding upon receipt of an undertaking by or on behalf of the director, officer, employee, or agent to repay such amount if it shall be ultimately determined that he is not entitled to be indemnified by the Corporation as
  authorized in this Article 24.
  Section 24.3 (Nonexclusivity) The indemnification provided by this Article 24 shall not be deemed
  exclusive of any other right to which persons seeking indemnification may be entitled under any agreement, vote of shareholders or disinterested directors, or otherwise, both as to actions in such persons' official capacity and as to their
  actions in another capacity while holding office, and shall continue as to a person who has ceased to be a director, officer, employee, or agent and shall inure to the benefit of the heirs, executors, and administrators of such person.
  Section 24.4 (Insurance) The Corporation may purchase and maintain insurance on behalf
  of any person who is or was a director, officer, employee, or agent of the Corporation, or is or was serving at the request of the Corporation as a director, officer, employee, or agent of another corporation, partnership, joint venture, or other
  enterprise against any liability asserted against such person and incurred by such person in any such capacity, or arising out of such person's status as such, whether or not the Corporation would have the power to indemnify such person against
  such liability under the provisions of this Article 24.
  Item 7.
  Exemption from Registration Claimed.
  Not applicable.
  Item 8.
  Exhibits.
  Exhibit No.
  Document
  4.1
  The Registrant's Articles of Incorporation, as amended, incorporated by reference to
  Exhibit 3(i)
  to Registrant's
  Quarterly Report on Form
  10-Q
  filed for the quarterly period ended March 31, 2024
  4.2
  The Registrant's
  By-laws,
  incorporated by reference to
  Exhibit 3(ii)
  of the
  Registrant's Annual report on Form
  10-K
  filed with the SEC on March 28, 2024
  5.1
  Opinion of Pillar Aught LLC
  10.1
  William Penn Bancorporation 2022 Equity Incentive Plan
  23.1
  Consent of Pillar Aught LLC (contained in Exhibit 5.1 hereto)
  23.2
  Consent of RSM US LLP
  24.1
  Powers of Attorney (included on the signature page of this registration statement)
  107.1
  Filing Fee Table
  Item 9.
  Undertakings.
  (a) The Company hereby undertakes:
  (1) To file, during any period in which offers or sales are being made, a post-effective amendment to this registration
  statement:
  (i) To include any prospectus required by section 10(a)(3) of the Securities Act of 1933;
  (ii) To reflect in the prospectus any facts or events arising after the effective date of the registration statement (or the
  most recent post-effective amendment thereof) which, individually or in the aggregate, represent a fundamental change in the information set forth in the registration statement. Notwithstanding the foregoing, any increase or decrease in volume of
  securities offered (if the total dollar value of securities offered would not exceed that which was registered) and any deviation from the low or high end of the estimated maximum offering range may be reflected in the form of prospectus filed with
  the Commission pursuant to Rule 424(b) (§ 230.424(b) of this chapter if, in the aggregate, the changes in volume and price represent no more than 20% change in the maximum aggregate offering price set forth in the "Calculation of Filing
  Fee Tables" or "Calculation of Registration Fee" table, as applicable, in the effective registration statement.
  (iii) To include any material information with respect to the plan of
  distribution not previously disclosed in the registration statement or any material change to such information in the registration statement;
  Provided, however, that
  :
  (A) Paragraphs (a)(1)(i) and (a)(1)(ii) and of this section do not apply if the registration statement is on Form
  S-8
  (§239.16b of this chapter), and the information required to be included in a post-effective amendment by those paragraphs is contained in reports filed with or furnished to the Commission by the registrant
  pursuant to section 13 or section 15(d) of the Securities Exchange Act of 1934 (15 U.S.C. 78m or 78o(d)) that are incorporated by reference in the registration statement; and
  (B) Paragraphs (a)(1)(ii), (ii), (iii) of this section do not apply if the registration statement is on Form
  S-1
  (§ 239.11 of this chapter), Form
  S-3
  (§ 239.13 of this chapter), Form
  SF-3
  (§ 239.45 of this chapter) or Form
  F-3
  (§ 239.33 of this chapter) and the information required to be included in a post-effective amendment by those paragraphs is contained in reports filed with or furnished to the Commission by the registrant
  pursuant to section 13 or section 15(d) of the Securities Exchange Act of 1934 (15 U.S.C. 78m or 78o(d)) that are incorporated by reference in the registration statement, or, as to a registration statement on Form
  S-3,
  Form
  SF-3
  or Form
  F-3,
  is contained in a form of prospectus filed pursuant to §230.424(b) of this chapter that is part
  of the registration statement.
  (C)
  Provided further, however
  , that paragraphs (a)(1)(i) and (a)(1)(ii) do not
  apply if the registration statement is for an offering of asset-backed securities on Form
  SF-1
  (§239.44 of this chapter) or Form
  SF-3
  (§ 239.45 of this
  chapter), and the information required to be included in a post-effective amendment is provided pursuant to Item 1100(c) of Regulation AB (§ 229.1100(c)).
  (2) That, for the purpose of determining any liability under the Securities Act of 1933, each such post-effective amendment
  shall be deemed to be a new registration statement relating to the securities offered therein, and the offering of such securities at that time shall be deemed to be the initial bona fide offering thereof.
  (3) To remove from registration by means of a post-effective amendment any of the securities being registered which remain
  unsold at the termination of the offering.
  SIGNATURES
  Pursuant to the requirements of the Securities Act of 1933, the Registrant certifies that it has reasonable grounds to believe that it meets
  all of the requirements for filing on Form
  S-8
  and has duly caused this Registration Statement to be signed on its behalf by the undersigned, thereunto duly authorized, in the City of Harrisburg, Commonwealth
  of Pennsylvania, on May 1, 2025.
  MID PENN BANCORP, INC.
  By:
  /s/ Rory G. Ritrievi
  Rory G. Ritrievi
  President and Chief Executive Officer
  POWER OF ATTORNEY
  KNOWN ALL MEN BY THESE PRESENTS, that each of the undersigned directors and officers of Mid Penn Bancorp, Inc., a Pennsylvania corporation
  (the "Company"), constitutes and appoints Rory G. Ritrievi and Justin T. Webb with full power of each of them to act alone, as the true and lawful
  attorneys-in-fact
  and agents of the undersigned, with full power of substitution and resubstitution for him or her and in his or her name, place and stead, in any and
  all capacities, to sign any and all amendments (including
  pre-effective
  and post-effective amendments) to this Registration Statement and to sign any registration statement (and any post-effective amendments
  thereto) effective upon filing pursuant to Rule 462(b) under the Securities Act of 1933, and to file the same, with all exhibits thereto, and other documents in connection therewith, with the Securities and Exchange Commission, granting unto said
  attorney-in-fact
  and agent full power and authority to do and perform each and every act and thing requisite and necessary to be done in and about the premises, as fully to
  all intents and purposed as he or she might or could do in person, hereby ratifying and confirming that said
  attorney-in-fact,
  agent or his or her substitutes may
  lawfully do or cause to be done by virtue hereof.
  Pursuant to the requirements of the Securities Act of 1933, as amended, this
  Registration Statement has been signed by the following persons in the capacities indicated on April 30, 2025.
  Signature
  Capacity
  /s/ Rory G. Ritrievi
  Chair, President and Chief Executive Officer
  Rory G. Ritrievi
  (Principal Executive Officer)
  /s/ Justin T. Webb
  Chief Financial Officer
  Justin T. Webb
  (Principal Financial Officer)
  /s/ Robert A. Abel
  Director
  Robert A. Abel
  /s/ Kimberly J. Brumbaugh
  Director
  Kimberly J. Brumbaugh
  /s/ Matthew G. DeSoto
  Director
  Matthew G. DeSoto
  /s/ Albert J. Evans
  Director
  Albert J. Evans
  /s/ Joel L. Frank
  Director
  Joel L. Frank
  /s/ Maureen M. Gathagan
  Director
  Maureen M. Gathagan
  /s/ Brian A. Hudson, Sr.
  Director
  Brian A. Hudson, Sr.
  /s/ Bruce A. Kiefer
  Director
  Bruce A. Kiefer
  /s/ Theodore W. Mowery
  Director
  Theodore W. Mowery
  /s/ John E. Noone
  Director
  John E. Noone
  /s/ William A. Specht, III
  Director
  William A. Specht, III