<SEC-DOCUMENT>0001193125-17-208678.txt : 20170621
<SEC-HEADER>0001193125-17-208678.hdr.sgml : 20170621
<ACCEPTANCE-DATETIME>20170621060947
ACCESSION NUMBER:		0001193125-17-208678
CONFORMED SUBMISSION TYPE:	S-8
PUBLIC DOCUMENT COUNT:		3
FILED AS OF DATE:		20170621
DATE AS OF CHANGE:		20170621
EFFECTIVENESS DATE:		20170621

FILER:

	COMPANY DATA:	
		COMPANY CONFORMED NAME:			MIDDLEFIELD BANC CORP
		CENTRAL INDEX KEY:			0000836147
		STANDARD INDUSTRIAL CLASSIFICATION:	STATE COMMERCIAL BANKS [6022]
		IRS NUMBER:				341585111
		STATE OF INCORPORATION:			OH

	FILING VALUES:
		FORM TYPE:		S-8
		SEC ACT:		1933 Act
		SEC FILE NUMBER:	333-218859
		FILM NUMBER:		17921928

	BUSINESS ADDRESS:	
		STREET 1:		15985 E HIGH ST
		STREET 2:		P O BOX 35
		CITY:			MIDDLEFILED
		STATE:			OH
		ZIP:			44062-9263
		BUSINESS PHONE:		4406321666

	MAIL ADDRESS:	
		STREET 1:		15985 EAST HIGH STREET
		STREET 2:		P O BOX 35
		CITY:			MIDDLEFIELD
		STATE:			OH
		ZIP:			44062-9263
</SEC-HEADER>
<DOCUMENT>
<TYPE>S-8
<SEQUENCE>1
<FILENAME>d417788ds8.htm
<DESCRIPTION>FORM S-8
<TEXT>
<HTML><HEAD>
<TITLE>Form S-8</TITLE>
</HEAD>
 <BODY BGCOLOR="WHITE">

 <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 June&nbsp;21, 2017 </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-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </B></P>
<P STYLE="font-size:4pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P> <P STYLE="line-height:1.0pt;margin-top:0pt;margin-bottom:0pt;border-bottom:1px solid #000000">&nbsp;</P>
<P STYLE="line-height:3.0pt;margin-top:0pt;margin-bottom:2pt;border-bottom:1px solid #000000">&nbsp;</P> <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, DC 20549 </B></P> <P STYLE="font-size:12pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P><center>
<P STYLE="line-height:6.0pt;margin-top:0pt;margin-bottom:2pt;border-bottom:1.00pt solid #000000;width:21%">&nbsp;</P></center> <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:18pt; font-family:Times New Roman" ALIGN="center"><B>FORM S-8
</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> <P STYLE="line-height:6.0pt;margin-top:0pt;margin-bottom:2pt;border-bottom:1.00pt solid #000000;width:21%">&nbsp;</P></center>
<P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:24pt; font-family:Times New Roman" ALIGN="center"><B>Middlefield Banc Corp. </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 specified in its charter) </B></P> <P STYLE="font-size:12pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P><center>
<P STYLE="line-height:6.0pt;margin-top:0pt;margin-bottom:2pt;border-bottom:1.00pt solid #000000;width:21%">&nbsp;</P></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>Ohio</B></TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top" ALIGN="center"><B>34-1585111</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 or organization)</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 No.)</B></P></TD></TR>
</TABLE> <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>15985 East High Street </B></P>
<P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>Middlefield, OH 44062-0035 </B></P>
<P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:8pt; font-family:Times New Roman" ALIGN="center"><B>(Address of Principal Executive Offices) (Zip Code) </B></P>
<P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>2017 Omnibus Equity 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 plan) </B></P> <P STYLE="font-size:12pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P><center>
<P STYLE="line-height:6.0pt;margin-top:0pt;margin-bottom:2pt;border-bottom:1.00pt solid #000000;width:21%">&nbsp;</P></center> <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>Thomas G.
Caldwell </B></P> <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>President and Chief Executive Officer </B></P>
<P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>Middlefield Banc Corp. </B></P>
<P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>15985 East High Street </B></P>
<P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>Middlefield, OH 44062-0035 </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>(440) 632-1666 </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> <P STYLE="line-height:6.0pt;margin-top:0pt;margin-bottom:2pt;border-bottom:1.00pt solid #000000;width:21%">&nbsp;</P></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:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>Francis X. Grady, Esq. </B></P>
<P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>Grady&nbsp;&amp; Associates </B></P>
<P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>20220 Center Ridge Road, Suite 300 </B></P>
<P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>Rocky River, Ohio 44116-3501 </B></P>
<P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>(440) 356-7255 </B></P> <P STYLE="font-size:12pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P><center>
<P STYLE="line-height:6.0pt;margin-top:0pt;margin-bottom:2pt;border-bottom:1.00pt solid #000000;width:21%">&nbsp;</P></center> <P STYLE="margin-top:0pt;margin-bottom:0pt;page-break-before:always"></P>
<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 non-accelerated 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 12b-2 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="59%"></TD>
<TD VALIGN="bottom" WIDTH="1%"></TD>
<TD WIDTH="20%"></TD>
<TD VALIGN="bottom" WIDTH="1%"></TD>
<TD WIDTH="1%"></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">&#9744;</TD></TR>
<TR STYLE="font-size:1pt">
<TD HEIGHT="5"></TD>
<TD HEIGHT="5" COLSPAN="2"></TD>
<TD HEIGHT="5" COLSPAN="2"></TD>
<TD HEIGHT="5" COLSPAN="2"></TD></TR>
<TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
<TD VALIGN="bottom">Non-Accelerated&nbsp;filer</TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="bottom">&#9744;&nbsp;&nbsp;(Do not check if a smaller reporting company)</TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="bottom">Smaller&nbsp;reporting&nbsp;company</TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="bottom">&#9746;</TD></TR>
<TR STYLE="font-size:1pt">
<TD HEIGHT="5"></TD>
<TD HEIGHT="5" COLSPAN="2"></TD>
<TD HEIGHT="5" COLSPAN="2"></TD>
<TD HEIGHT="5" 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.&nbsp;&nbsp;&#9744; </P> <P STYLE="font-size:12pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P><center>
<P STYLE="line-height:6.0pt;margin-top:0pt;margin-bottom:2pt;border-bottom:1.00pt solid #000000;width:21%">&nbsp;</P></center> <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>CALCULATION
OF REGISTRATION FEE </B></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:8pt" ALIGN="center">


<TR>
<TD WIDTH="44%"></TD>
<TD VALIGN="bottom" WIDTH="1%"></TD>
<TD WIDTH="13%"></TD>
<TD VALIGN="bottom" WIDTH="1%"></TD>
<TD WIDTH="13%"></TD>
<TD VALIGN="bottom" WIDTH="1%"></TD>
<TD WIDTH="13%"></TD>
<TD VALIGN="bottom" WIDTH="1%"></TD>
<TD WIDTH="13%"></TD></TR>


<TR STYLE="font-size:1px; ">
<TD COLSPAN="9" VALIGN="bottom"> <P STYLE=" margin-top:0pt ; margin-bottom:0pt; border-top:1.00px solid #000000">&nbsp;</P></TD></TR>
<TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:8pt">
<TD VALIGN="bottom" ALIGN="center" STYLE="BORDER-TOP:1px solid #000000"> <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:8pt; font-family:Times New Roman" ALIGN="center"><B>Title of Each Class Of Securities</B></P>
<P STYLE="margin-top:0pt; margin-bottom:1pt; font-size:8pt; font-family:Times New Roman" ALIGN="center"><B>To Be Registered</B></P></TD>
<TD VALIGN="bottom" STYLE="BORDER-LEFT:1px solid #000000; BORDER-TOP:1px solid #000000">&nbsp;</TD>
<TD VALIGN="bottom" NOWRAP ALIGN="center" STYLE="BORDER-TOP:1px solid #000000"> <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:8pt; font-family:Times New Roman" ALIGN="center"><B>Amount</B></P>
<P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:8pt; font-family:Times New Roman" ALIGN="center"><B>To Be</B></P> <P STYLE="margin-top:0pt; margin-bottom:1pt; font-size:8pt; font-family:Times New Roman" ALIGN="center"><B>Registered<SUP
STYLE="font-size:85%; vertical-align:top">(1) (2)</SUP></B></P></TD>
<TD VALIGN="bottom" STYLE="BORDER-LEFT:1px solid #000000; BORDER-TOP:1px solid #000000">&nbsp;</TD>
<TD VALIGN="bottom" NOWRAP ALIGN="center" STYLE="BORDER-TOP:1px solid #000000"> <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:8pt; font-family:Times New Roman" ALIGN="center"><B>Proposed</B></P>
<P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:8pt; font-family:Times New Roman" ALIGN="center"><B>Maximum</B></P> <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:8pt; font-family:Times New Roman" ALIGN="center"><B>Offering
Price</B></P> <P STYLE="margin-top:0pt; margin-bottom:1pt; font-size:8pt; font-family:Times New Roman" ALIGN="center"><B>Per&nbsp;Share</B></P></TD>
<TD VALIGN="bottom" STYLE="BORDER-LEFT:1px solid #000000; BORDER-TOP:1px solid #000000">&nbsp;</TD>
<TD VALIGN="bottom" NOWRAP ALIGN="center" STYLE="BORDER-TOP:1px solid #000000"> <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:8pt; font-family:Times New Roman" ALIGN="center"><B>Proposed</B></P>
<P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:8pt; font-family:Times New Roman" ALIGN="center"><B>Maximum</B></P> <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:8pt; font-family:Times New Roman" ALIGN="center"><B>Aggregate</B></P>
<P STYLE="margin-top:0pt; margin-bottom:1pt; font-size:8pt; font-family:Times New Roman" ALIGN="center"><B>Offering&nbsp;Price<SUP STYLE="font-size:85%; vertical-align:top">(2) (3)</SUP></B></P></TD>
<TD VALIGN="bottom" STYLE="BORDER-LEFT:1px solid #000000; BORDER-TOP:1px solid #000000">&nbsp;</TD>
<TD VALIGN="bottom" NOWRAP ALIGN="center" STYLE="BORDER-TOP:1px solid #000000"><B>Amount Of<BR>Registration Fee<SUP STYLE="font-size:85%; vertical-align:top">(1) (3)</SUP></B></TD></TR>
<TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
<TD VALIGN="top" STYLE="BORDER-TOP:1px solid #000000"> <P STYLE=" margin-top:0pt ; margin-bottom:0pt; margin-left:1.00em; text-indent:-1.00em; font-size:10pt; font-family:Times New Roman">common stock, no par value</P></TD>
<TD VALIGN="bottom" STYLE="BORDER-LEFT:1px solid #000000; BORDER-TOP:1px solid #000000">&nbsp;</TD>
<TD VALIGN="bottom" NOWRAP ALIGN="center" STYLE="BORDER-TOP:1px solid #000000">224,000 shares</TD>
<TD VALIGN="bottom" STYLE="BORDER-LEFT:1px solid #000000; BORDER-TOP:1px solid #000000">&nbsp;</TD>
<TD VALIGN="bottom" NOWRAP ALIGN="center" STYLE="BORDER-TOP:1px solid #000000">$51.85</TD>
<TD VALIGN="bottom" STYLE="BORDER-LEFT:1px solid #000000; BORDER-TOP:1px solid #000000">&nbsp;</TD>
<TD VALIGN="bottom" NOWRAP ALIGN="center" STYLE="BORDER-TOP:1px solid #000000">$11,614,400</TD>
<TD VALIGN="bottom" STYLE="BORDER-LEFT:1px solid #000000; BORDER-TOP:1px solid #000000">&nbsp;</TD>
<TD VALIGN="bottom" NOWRAP ALIGN="center" STYLE="BORDER-TOP:1px solid #000000">$1346.11</TD></TR>
<TR STYLE="font-size:1px; ">
<TD COLSPAN="9" VALIGN="bottom"> <P STYLE=" margin-top:0pt ; margin-bottom:0pt; border-top:1.00px solid #000000">&nbsp;</P></TD></TR>
<TR STYLE="font-size:1px; ">
<TD COLSPAN="9" VALIGN="bottom"> <P STYLE=" margin-top:0pt ; margin-bottom:0pt; border-top:1.00px solid #000000">&nbsp;</P></TD></TR>
</TABLE>
<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%" VALIGN="top" ALIGN="left">(1)</TD>
<TD ALIGN="left" VALIGN="top">This Registration Statement on Form S-8 covers an aggregate of 224,000 shares of common stock, no par value, of Middlefield Banc Corp. that may be offered under the 2017 Omnibus Equity Plan. </TD></TR></TABLE>
<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%" VALIGN="top" ALIGN="left">(2)</TD>
<TD ALIGN="left" VALIGN="top">In addition, pursuant to Rule 416(a) under the Securities Act of 1933, as amended (the &#147;Securities Act&#148;), this Registration Statement on Form S-8 also covers an indeterminate number of additional common shares
that may become issuable under the terms of the 2017 Omnibus Equity Plan to prevent dilution resulting from any stock split, stock dividend, recapitalization or other similar transaction or adjustment affecting the common shares of Middlefield Banc
Corp. as specified in the anti-dilution provisions of the 2017 Omnibus Equity Plan. </TD></TR></TABLE>
<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%" VALIGN="top" ALIGN="left">(3)</TD>
<TD ALIGN="left" VALIGN="top">Estimated solely for the purpose of calculating the aggregate offering price and the amount of the registration fee in accordance with Rules 457(c) and 457(h) of the Securities Act. Based upon the average of the high
and low prices of Middlefield Banc Corp.&#146;s common stock. as reported on the NASDAQ Capital Market, on June&nbsp;14, 2017, which date is within 5 business days prior to the date of filing of this Registration Statement. </TD></TR></TABLE>
<P STYLE="font-size:10pt;margin-top:0pt;margin-bottom:0pt">&nbsp;</P> <P STYLE="line-height:1.0pt;margin-top:0pt;margin-bottom:0pt;border-bottom:1px solid #000000">&nbsp;</P>
<P STYLE="line-height:3.0pt;margin-top:0pt;margin-bottom:2pt;border-bottom:1px solid #000000">&nbsp;</P>

<p Style='page-break-before:always'>
<HR  SIZE="3" style="COLOR:#999999" WIDTH="100%" ALIGN="CENTER">

 <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:0pt; 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">The documents containing the information specified in Part I of Form S-8 will be sent or given to participants in the 2017 Omnibus Equity Plan as specified by
Rule 428(b)(1) promulgated under the Securities Act. </P> <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman">Such documents are not being filed with the Securities and Exchange Commission (the
&#147;Commission&#148;), but constitute (along with the documents incorporated by reference into this Registration Statement pursuant to Item&nbsp;3 of Part II hereof) a prospectus that meets the requirements of Section&nbsp;10(a) of the Securities
Act. </P> <P STYLE="margin-top:24pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>PART II </B></P>
<P STYLE="margin-top:0pt; 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="8%" VALIGN="top" ALIGN="left">ITEM&nbsp;3.</TD>
<TD ALIGN="left" VALIGN="top">INCORPORATION OF DOCUMENTS BY REFERENCE </TD></TR></TABLE> <P STYLE="margin-top:6pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">The following documents are incorporated by reference
in this registration statement: </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="4%" VALIGN="top" ALIGN="left">(a)</TD>
<TD ALIGN="left" VALIGN="top">The Registrant&#146;s Annual Report on Form 10-K for the fiscal year ended December&nbsp;31, 2016, filed with the Commission on March&nbsp;15, 2017 (SEC File No.&nbsp;001-36613); </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="4%" VALIGN="top" ALIGN="left">(b)</TD>
<TD ALIGN="left" VALIGN="top">The Registrant&#146;s Quarterly Report on Form 10-Q for the quarter ended March&nbsp;31, 2017, filed with the Commission on May&nbsp;15, 2017 (SEC File No.&nbsp;001-36613); </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="4%" VALIGN="top" ALIGN="left">(c)</TD>
<TD ALIGN="left" VALIGN="top">The Registrant&#146;s Current reports on Form 8-K filed with the Commission on January&nbsp;9, 2017,&nbsp;January&nbsp;11, 2017,&nbsp;January&nbsp;13, 2017,&nbsp;February&nbsp;16, 2017,&nbsp;March&nbsp;6,
2017,&nbsp;March&nbsp;14, 2017,&nbsp;March&nbsp;24, 2017;&nbsp;April&nbsp;28, 2017,&nbsp;May&nbsp;9, 2017,&nbsp;May&nbsp;10, 2017, and May&nbsp;15, 2017 (SEC File No.&nbsp;001-36613); </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="4%" VALIGN="top" ALIGN="left">(d)</TD>
<TD ALIGN="left" VALIGN="top">The definitive proxy statement for the Registrant&#146;s 2017 Annual Meeting of Shareholders filed by the Registrant with the Commission on April&nbsp;4, 2017 (SEC File No.&nbsp;001-36613); and </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="4%" VALIGN="top" ALIGN="left">(e)</TD>
<TD ALIGN="left" VALIGN="top">The description of Middlefield Banc Corp.&#146;s common stock contained under the caption &#147;Description of Securities&#148; in the Form 10-12G Registration Statement of Middlefield Banc Corp., as filed with the
Commission on April&nbsp;17, 2001, and amended June&nbsp;14, 2001 by Amendment No.&nbsp;1 (File No.&nbsp;033-23094). </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 pursuant to Sections 13(a), 13(c), 14 and 15(d) of the Securities Exchange Act of 1934, prior to the filing of a post-effective amendment that indicates that all securities offered have been sold or that
deregisters all securities then remaining unsold, shall be deemed to be incorporated by reference in this Registration Statement and to be a part hereof from the date of filing of such documents. </P>

<p Style='page-break-before:always'>
<HR  SIZE="3" style="COLOR:#999999" WIDTH="100%" ALIGN="CENTER">


<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="8%" VALIGN="top" ALIGN="left">ITEM&nbsp;4.</TD>
<TD ALIGN="left" VALIGN="top">DESCRIPTION OF SECURITIES </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="8%" VALIGN="top" ALIGN="left">ITEM&nbsp;5.</TD>
<TD ALIGN="left" VALIGN="top">INTERESTS OF NAMED EXPERTS AND COUNSEL </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="8%" VALIGN="top" ALIGN="left">ITEM&nbsp;6.</TD>
<TD ALIGN="left" VALIGN="top">INDEMNIFICATION OF DIRECTORS AND OFFICERS </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="4%" VALIGN="top" ALIGN="left"><B>(a)</B></TD>
<TD ALIGN="left" VALIGN="top"><B>Ohio General Corporation Law </B></TD></TR></TABLE> <P STYLE="margin-top:12pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">Section&nbsp;1701.13(E) of the Ohio Revised Code grants
corporations broad powers to indemnify directors, officers, employees and agents. Section&nbsp;1701.13(E) provides: </P>
<P STYLE="margin-top:6pt; margin-bottom:0pt; margin-left:4%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(E)(1)&nbsp;&nbsp;&nbsp;&nbsp; A corporation may indemnify or agree to 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, other than an action by or in the right of the corporation, by reason of the fact that
the 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, trustee, officer, employee, member, manager, or agent of another corporation, domestic or foreign,
nonprofit or for profit, a limited liability company, or a partnership, joint venture, trust, or other enterprise, against expenses, including attorney&#146;s fees, judgments, fines, and amounts paid in settlement actually and reasonably incurred by
the person in connection with such action, suit, or proceeding, if the person acted in good faith and in a manner the person reasonably believed to be in or not opposed to the best interests of the corporation, and, with respect to any criminal
action or proceeding, if the person had no reasonable cause to believe the person&#146;s conduct was unlawful. The termination of any action, suit, or proceeding by judgment, order, settlement, or conviction, or upon a plea of nolo contendere or its
equivalent, shall not, of itself, create a presumption that the person did not act in good faith and in a manner the person reasonably believed to be in or not opposed to the best interests of the corporation, and, with respect to any criminal
action or proceeding, the person had reasonable cause to believe that the person&#146;s conduct was unlawful. </P>
<P STYLE="margin-top:12pt; margin-bottom:0pt; margin-left:4%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(2)&nbsp;&nbsp;&nbsp;&nbsp; A corporation may indemnify or agree to indemnify any person who was or is a party, or is
threatened to be made a party, to any threatened, pending, or completed action or suit by or in the right of the corporation to procure a judgment in its favor, by reason of the fact that the 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, trustee, officer, employee, member, manager, or agent of another corporation, domestic or foreign, nonprofit or for profit, a limited liability company, or a
partnership, joint venture, trust, or other enterprise, against expenses, including attorney&#146;s fees, actually and reasonably incurred by the person in connection with the defense or settlement of such action or suit, if the person acted in good
faith and in a manner the person reasonably believed to be in or not opposed to the best interests of the corporation, except that no indemnification shall be made in respect of any of the following: </P>
<P STYLE="margin-top:6pt; margin-bottom:0pt; margin-left:8%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(a)&nbsp;&nbsp;&nbsp;&nbsp; Any claim, issue, or matter as to which such person is adjudged to be liable for negligence or
misconduct in the performance of the person&#146;s duty to the corporation unless, and only to the extent that, the court of common pleas or the court in which such action or suit was brought determines, upon application, that, despite the
adjudication of liability, but in view of all the circumstances of the case, such person is fairly and reasonably entitled to indemnity for such expenses as the court of common pleas or such other court shall deem proper; </P>

<p Style='page-break-before:always'>
<HR  SIZE="3" style="COLOR:#999999" WIDTH="100%" ALIGN="CENTER">

 <P STYLE="margin-top:0pt; margin-bottom:0pt; margin-left:8%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(b)&nbsp;&nbsp;&nbsp;&nbsp; Any action or suit in which the only liability
asserted against a director is pursuant to&nbsp;section 1701.95 of the Revised Code. </P> <P STYLE="margin-top:12pt; margin-bottom:0pt; margin-left:4%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(3)&nbsp;&nbsp;&nbsp;&nbsp; To the
extent that a director, trustee, officer, employee, member, manager, or agent has been successful on the merits or otherwise in defense of any action, suit, or proceeding referred to in division (E)(1) or (2)&nbsp;of this section, or in defense of
any claim, issue, or matter in the action, suit, or proceeding, the person shall be indemnified against expenses, including attorney&#146;s fees, actually and reasonably incurred by the person in connection with the action, suit, or proceeding. </P>
<P STYLE="margin-top:12pt; margin-bottom:0pt; margin-left:4%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(4)&nbsp;&nbsp;&nbsp;&nbsp; Any indemnification under division (E)(1) or (2)&nbsp;of this section, unless ordered by a court,
shall be made by the corporation only as authorized in the specific case, upon a determination that indemnification of the director, trustee, officer, employee, member, manager, or agent is proper in the circumstances because the person has met the
applicable standard of conduct set forth in division (E)(1) or (2)&nbsp;of this section. Such determination shall be made as follows: </P>
<P STYLE="margin-top:6pt; margin-bottom:0pt; margin-left:8%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(a)&nbsp;&nbsp;&nbsp;&nbsp; By a majority vote of a quorum consisting of directors of the indemnifying corporation who were not
and are not parties to or threatened with the action, suit, or proceeding referred to in division (E)(1) or (2)&nbsp;of this section; </P>
<P STYLE="margin-top:6pt; margin-bottom:0pt; margin-left:8%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(b)&nbsp;&nbsp;&nbsp;&nbsp; If the quorum described in division (E)(4)(a) of this section is not obtainable or if a majority
vote of a quorum of disinterested directors so directs, in a written opinion by independent legal counsel other than an attorney, or a firm having associated with it an attorney, who has been retained by or who has performed services for the
corporation or any person to be indemnified within the past five years; </P> <P STYLE="margin-top:6pt; margin-bottom:0pt; margin-left:8%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(c)&nbsp;&nbsp;&nbsp;&nbsp; By the shareholders;
</P> <P STYLE="margin-top:6pt; margin-bottom:0pt; margin-left:8%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(d)&nbsp;&nbsp;&nbsp;&nbsp; By the court of common pleas or the court in which the action, suit, or proceeding referred to
in division (E)(1) or (2)&nbsp;of this section was brought. </P> <P STYLE="margin-top:12pt; margin-bottom:0pt; margin-left:4%; text-indent:4%; font-size:10pt; font-family:Times New Roman">Any determination made by the disinterested directors under
division (E)(4)(a) or by independent legal counsel under division (E)(4)(b) of this section shall be promptly communicated to the person who threatened or brought the action or suit by or in the right of the corporation under division (E)(2) of this
section, and, within ten days after receipt of that notification, the person shall have the right to petition the court of common pleas or the court in which the action or suit was brought to review the reasonableness of that determination. </P>
<P STYLE="margin-top:12pt; margin-bottom:0pt; margin-left:4%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(5) </P>
<P STYLE="margin-top:6pt; margin-bottom:0pt; margin-left:8%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(a)&nbsp;&nbsp;&nbsp;&nbsp; Unless at the time of a director&#146;s act or omission that is the subject of an action, suit, or
proceeding referred to in division (E)(1) or (2)&nbsp;of this section, the articles or the regulations of a corporation state, by specific reference to this division, that the provisions of this division do not apply to the corporation and unless
the only liability asserted against a director in an action, suit, or proceeding referred to in division (E)(1) or (2)&nbsp;of this section is pursuant to&nbsp;section 1701.95 of the Revised Code, expenses, including attorney&#146;s fees, incurred
by a director in defending the action, suit, or proceeding shall be paid by the corporation as they are incurred, in advance of the final disposition of the action, suit, or proceeding, upon receipt of an undertaking by or on behalf of the director
in which the director agrees to do both of the following: </P> <P STYLE="margin-top:6pt; margin-bottom:0pt; margin-left:13%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(i)&nbsp;&nbsp;&nbsp;&nbsp; Repay that amount if it is proved
by clear and convincing evidence in a court of competent jurisdiction that the director&#146;s action or failure to act involved an act or omission undertaken with deliberate intent to cause injury to the corporation or undertaken with reckless
disregard for the best interests of the corporation; </P>

<p Style='page-break-before:always'>
<HR  SIZE="3" style="COLOR:#999999" WIDTH="100%" ALIGN="CENTER">

 <P STYLE="margin-top:0pt; margin-bottom:0pt; margin-left:13%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(ii)&nbsp;&nbsp;&nbsp;&nbsp; Reasonably cooperate with the corporation
concerning the action, suit, or proceeding. </P> <P STYLE="margin-top:6pt; margin-bottom:0pt; margin-left:8%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(b)&nbsp;&nbsp;&nbsp;&nbsp; Expenses, including attorney&#146;s fees, incurred
by a director, trustee, officer, employee, member, manager, or agent in defending any action, suit, or proceeding referred to in division (E)(1) or (2)&nbsp;of this section, may be paid by the corporation as they are incurred, in advance of the
final disposition of the action, suit, or proceeding, as authorized by the directors in the specific case, upon receipt of an undertaking by or on behalf of the director, trustee, officer, employee, member, manager, or agent to repay that amount, if
it ultimately is determined that the person is not entitled to be indemnified by the corporation. </P>
<P STYLE="margin-top:12pt; margin-bottom:0pt; margin-left:4%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(6)&nbsp;&nbsp;&nbsp;&nbsp; The indemnification or advancement of expenses authorized by this section shall not be exclusive
of, and shall be in addition to, any other rights granted to those seeking indemnification or advancement of expenses under the articles, the regulations, any agreement, a vote of shareholders or disinterested directors, or otherwise, both as to
action in their official capacities and as to action in another capacity while holding their offices or positions, and shall continue as to a person who has ceased to be a director, trustee, officer, employee, member, manager, or agent and shall
inure to the benefit of the heirs, executors, and administrators of that person. A right to indemnification or to advancement of expenses arising under a provision of the articles or the regulations shall not be eliminated or impaired by an
amendment to that provision after the occurrence of the act or omission that becomes the subject of the civil, criminal, administrative, or investigative action, suit, or proceeding for which the indemnification or advancement of expenses is sought,
unless the provision in effect at the time of that act or omission explicitly authorizes that elimination or impairment after the act or omission has occurred. </P>
<P STYLE="margin-top:12pt; margin-bottom:0pt; margin-left:4%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(7)&nbsp;&nbsp;&nbsp;&nbsp; A corporation may purchase and maintain insurance or furnish similar protection, including, but
not limited to, trust funds, letters of credit, or self-insurance, on behalf of or for 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,
trustee, officer, employee, member, manager, or agent of another corporation, domestic or foreign, nonprofit or for profit, a limited liability company, or a partnership, joint venture, trust, or other enterprise, against any liability asserted
against the person and incurred by the person in any such capacity, or arising out of the person&#146;s status as such, whether or not the corporation would have the power to indemnify the person against that liability under this section. Insurance
may be purchased from or maintained with a person in which the corporation has a financial interest. </P>
<P STYLE="margin-top:12pt; margin-bottom:0pt; margin-left:4%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(8)&nbsp;&nbsp;&nbsp;&nbsp; The authority of a corporation to indemnify persons pursuant to division (E)(1) or (2)&nbsp;of
this section does not limit the payment of expenses as they are incurred, indemnification, insurance, or other protection that may be provided pursuant to divisions (E)(5), (6), and (7)&nbsp;of this section. Divisions (E)(1) and (2)&nbsp;of this
section do not create any obligation to repay or return payments made by the corporation pursuant to division (E)(5), (6), or (7). </P>
<P STYLE="margin-top:12pt; margin-bottom:0pt; margin-left:4%; text-indent:4%; font-size:10pt; font-family:Times New Roman">(9)&nbsp;&nbsp;&nbsp;&nbsp; As used in division (E)&nbsp;of this section, &#147;corporation&#148; includes all constituent
entities in a consolidation or merger and the new or surviving corporation, so that any person who is or was a director, officer, employee, trustee, member, manager, or agent of such a constituent entity, or is or was serving at the request of such
constituent entity as a director, trustee, officer, employee, member, manager, or agent of another corporation, domestic or foreign, nonprofit or for profit, a limited liability company, or a partnership, joint venture, trust, or other enterprise,
shall stand in the same position under this section with respect to the new or surviving corporation as the person would if the person had served the new or surviving corporation in the same capacity. </P>

<p Style='page-break-before:always'>
<HR  SIZE="3" style="COLOR:#999999" WIDTH="100%" ALIGN="CENTER">


<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="4%" VALIGN="top" ALIGN="left"><B>(b)</B></TD>
<TD ALIGN="left" VALIGN="top"><B>Articles of Incorporation and Regulations of Middlefield Banc Corp. </B></TD></TR></TABLE> <P STYLE="margin-top:12pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">Middlefield Banc
Corp.&#146;s Regulations provide in Article VIII for indemnification of directors and officers, as follows: </P> <P STYLE="margin-top:6pt; margin-bottom:0pt; margin-left:4%; font-size:10pt; font-family:Times New Roman">&#147;SECTION
1&#151;INDEMNIFICATION. The Corporation shall indemnify, to the full extent then permitted by law, 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 (and including, without limitation, any action, suit or proceeding by or in the right of the Corporation or otherwise), by reason of the fact that he is or was a member of the Board of Directors or an
officer, employee or agent of the Corporation, or is or was serving at the request of the Corporation as a director, trustee, officer, employee or agent of another corporation, partnership, joint venture, trust or other enterprise. The Corporation
shall pay, to the full extent then required by law, expenses, including attorney&#146;s fees, incurred by a member of the Board of Directors in defending any such action, suit or proceeding as they are incurred, in advance of the final disposition
thereof, and may pay, in the same manner and to the full extent then permitted by law, such expenses incurred by any other person. The indemnification and payment of expenses provided hereby shall not be exclusive of, and shall be in addition to,
any other rights granted to those seeking indemnification under any law, the Articles, any agreement, vote of shareholders or disinterested members of the Board of Directors, or otherwise, both as to action in official capacities and as to action in
another capacity while he or she is a member of the Board of Directors, or an officer, employee or agent of the Corporation, and shall continue as to a person who has ceased to be a member of the Board of Directors, trustee, officer, employee or
agent and shall inure to the benefit of the heirs, executors, and administrators of such a person. </P> <P STYLE="margin-top:6pt; margin-bottom:0pt; margin-left:4%; font-size:10pt; font-family:Times New Roman">&#147;SECTION 2&#151;INSURANCE. To the
full extent then permitted by law and authorized by the Board of Directors, the Corporation may purchase and maintain insurance or furnish similar protection, including but not limited to, trust funds, letters of credit or self-insurance, on behalf
of or for any persons described in Section&nbsp;1 of this article against any liability asserted against and incurred by any such person in any such capacity, or arising out of his status as such, regardless of whether the Corporation would have the
power to indemnify such person against such liability. Insurance may be purchased from or maintained with a person in which the Corporation has a financial interest. </P>
<P STYLE="margin-top:6pt; margin-bottom:0pt; margin-left:4%; font-size:10pt; font-family:Times New Roman">&#147;SECTION 3&#151;AGREEMENTS. Upon approval by the Board of Directors, the Corporation may enter into agreements with any persons whom the
Corporation may indemnify under these Regulations or under law and undertake thereby to indemnify such persons and to pay the expenses incurred by them in defending any action, suit or proceeding against them, regardless of whether the Corporation
would have the power under law or these Regulations to indemnify any such person.&#148; </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="4%" VALIGN="top" ALIGN="left"><B>(c)</B></TD>
<TD ALIGN="left" VALIGN="top"><B>Indemnification under private indemnification agreements </B></TD></TR></TABLE> <P STYLE="margin-top:12pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">Directors and executive
officers of Middlefield Banc Corp. entered into indemnification agreements with Middlefield Banc Corp. The indemnification agreements allow the directors and officers to select the most favorable indemnification rights provided under
(1)&nbsp;Middlefield Banc Corp.&#146;s articles of incorporation and regulations in effect on the date of the indemnification agreement or on the date expenses are incurred, (2)&nbsp;state law in effect on the date of the indemnification agreement
or on the date expenses are incurred, (3)&nbsp;any liability insurance policy in effect when a claim is made or on the date expenses are incurred, and (4)&nbsp;any other indemnification arrangement otherwise available. The agreements cover all fees,
expenses, judgments, fines, penalties, and settlement amounts paid in any matter relating to the director&#146;s or officer&#146;s role as Middlefield Banc Corp.&#146;s director, officer, employee, agent or when serving as Middlefield Banc
Corp.&#146;s representative with another entity. Each indemnification agreement provides for the prompt advancement of all expenses incurred, subject to the obligation to repay those advances if the director or officer is later determined to be not
entitled to indemnification. A form of the indemnification agreement is included as Exhibit 99.1 to the Form 10 Registration Statement, Amendment No.&nbsp;1, filed by Middlefield Banc Corp. on June&nbsp;14, 2001 and is incorporated herein by this
reference. </P> <P STYLE="margin-top:12pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">Middlefield Banc Corp. maintains directors&#146; and officers&#146; insurance coverage for its officers and directors. </P>

<p Style='page-break-before:always'>
<HR  SIZE="3" style="COLOR:#999999" WIDTH="100%" ALIGN="CENTER">


<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="8%" VALIGN="top" ALIGN="left">ITEM&nbsp;7.</TD>
<TD ALIGN="left" VALIGN="top">EXEMPTION FROM REGISTRATION CLAIMED </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="8%" VALIGN="top" ALIGN="left">ITEM&nbsp;8.</TD>
<TD ALIGN="left" VALIGN="top">EXHIBITS </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="7%"></TD>
<TD WIDTH="90%"></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; width:39.10pt; font-size:8pt; font-family:Times New Roman"><B>Exhibit&nbsp;No.</B></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; width:39.50pt; font-size:8pt; font-family:Times New Roman"><B>Description</B></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">Middlefield Banc Corp. 2017 Omnibus Equity Plan (incorporated by reference to Appendix A to the Registrant&#146;s definitive proxy statement on Schedule 14A filed with the Commission on April 4, 2017, SEC File No.
001-36613)</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">Specimen common stock certificate (included as Exhibit 4 to Middlefield Banc Corp.&#146;s Form 10-12G Registration Statement filed on April 17, 2001 (SEC File No. 033-23094) and incorporated herein by this reference)</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.3</TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top">Second Amended and Restated Articles of Incorporation of Middlefield Banc Corp., as amended (Incorporated by reference to Exhibit 3.1 of Middlefield Banc Corp.&#146;s Annual Report on Form 10-K for the Fiscal Year Ended December 31,
2005, filed on March 29, 2006, SEC File No. 000-32561)</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.4</TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top">Regulations of Middlefield Banc Corp. (Incorporated by reference to Exhibit 3.2 of Middlefield Banc Corp.&#146;s registration statement on Form 10 filed on April 17, 2001 SEC File No. 000-32561)</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*</TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top">Opinion of Grady &amp; Associates regarding legality</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">Consent of S.R. Snodgrass, P.C.</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">Consent of Grady &amp; Associates (included in Exhibit 5)</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</TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top">Power of Attorney (included on the signature page of this Form S-8 registration statement)</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%" VALIGN="top" ALIGN="left">*</TD>
<TD ALIGN="left" VALIGN="top">Filed herewith </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="8%" VALIGN="top" ALIGN="left">ITEM&nbsp;9.</TD>
<TD ALIGN="left" VALIGN="top">UNDERTAKINGS </TD></TR></TABLE> <P STYLE="margin-top:6pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">(a) The undersigned registrant hereby undertakes: </P>
<P STYLE="margin-top:6pt; margin-bottom:0pt; 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; text-indent:4%; font-size:10pt; font-family:Times New Roman">(i) To include any prospectus required by Section&nbsp;10(a)(3) of the Securities Act of 1933; </P>
<P STYLE="margin-top:6pt; margin-bottom:0pt; 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 Registration
Fee&#148; table in the effective registration statement; and </P>

<p Style='page-break-before:always'>
<HR  SIZE="3" style="COLOR:#999999" WIDTH="100%" ALIGN="CENTER">

 <P STYLE="margin-top:0pt; margin-bottom:0pt; 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:4%; font-size:10pt; font-family:Times New Roman"><I>provided,
however</I>, that paragraphs (a)(1)(i) and (a)(1)(ii) do not apply if the information required to be included in a post-effective amendment by those paragraphs is contained in periodic reports filed with or furnished to the Commission by Middlefield
Banc Corp. under Section&nbsp;13 or Section&nbsp;15(d) of the Securities Exchange Act of 1934 that are incorporated by reference in the registration statement. </P>
<P STYLE="margin-top:12pt; margin-bottom:0pt; 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 <I>bona fide</I> offering thereof. </P>
<P STYLE="margin-top:12pt; margin-bottom:0pt; 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> <P STYLE="margin-top:12pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">(b) The undersigned registrant hereby undertakes that, for purposes of determining any liability under the
Securities Act of 1933, each filing of the registrant&#146;s annual report pursuant to section 13(a) or section 15(d) of the Securities Exchange Act of 1934 (and, where applicable, each filing of an employee benefit plan&#146;s annual report
pursuant to section 15(d) of the Securities Exchange Act of 1934) that is incorporated by reference in the registration statement 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 <I>bona fide</I> offering thereof. </P> <P STYLE="margin-top:12pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">(c) Insofar as indemnification for
liabilities arising under the Securities Act of 1933 may be permitted to directors, officers and controlling persons of the registrant pursuant to the foregoing provisions, or otherwise, the registrant has been advised that in the opinion of the
Securities and Exchange Commission such indemnification is against public policy as expressed in the Act and is, therefore, unenforceable. In the event that a claim for indemnification against such liabilities (other than the payment by the
registrant of expenses incurred or paid by a director, officer or controlling person of the registrant in the successful defense of any action, suit or proceeding) is asserted by such director, officer or controlling person in connection with the
securities being registered, the registrant will, unless in the opinion of its counsel the matter has been settled by controlling precedent, submit to a court of appropriate jurisdiction the question whether such indemnification by it is against
public policy as expressed in the Act and will be governed by the final adjudication of such issue. </P>

<p Style='page-break-before:always'>
<HR  SIZE="3" style="COLOR:#999999" WIDTH="100%" ALIGN="CENTER">

 <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 S-8 and has duly caused this Registration Statement to be signed on its behalf by the undersigned, thereunto duly authorized, in the Village of Middlefield, State of Ohio, on this 21<SUP
STYLE="font-size:85%; vertical-align:top">st</SUP> day of June, 2017. </P> <P STYLE="font-size:18pt;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="6%"></TD>
<TD VALIGN="bottom" WIDTH="2%"></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"><B>M<SMALL>IDDLEFIELD</SMALL> B<SMALL>ANC</SMALL> C<SMALL>ORP</SMALL>.</B></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" STYLE="BORDER-BOTTOM:1px solid #000000">&nbsp;</TD>
<TD VALIGN="top" STYLE="BORDER-BOTTOM:1px solid #000000">/s/ Thomas G. Caldwell</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="bottom">Thomas G. Caldwell</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="bottom">President and Chief Executive Officer</TD></TR>
</TABLE></DIV> <P STYLE="margin-top:24pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>P<SMALL>OWER</SMALL> <SMALL>OF</SMALL> A<SMALL>TTORNEY</SMALL> <SMALL>AND</SMALL>
S<SMALL>IGNATURES</SMALL> </B></P> <P STYLE="margin-top:12pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">Each person whose signature appears below constitutes and appoints Thomas G. Caldwell and James R. Heslop,
II, and each of them, his true and lawful attorney-in-fact and agent, with full power of substitution and resubstitution, as attorneys or attorney of the undersigned, to execute and file under the Securities Act of 1933 a registration statement on
Form S-8 for the offer and sale of shares of common stock, without par value, of Middlefield Banc Corp., and any and all amendments and exhibits thereto, including pre- and post-effective amendments, and any and all applications or other documents
to be filed with the Securities and Exchange Commission and NASDAQ pertaining to registration or qualification of the shares of common stock of Middlefield Banc Corp. or the offer and sale thereof, with full power and authority to do and perform any
and all acts and things whatsoever necessary, appropriate or desirable to be done in the premises, or in the name, place and stead of the said person, hereby ratifying and approving the acts of said attorneys and any of them and any such substitute.
</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, this registration statement has been signed by the following persons in the
capacities and on the dates indicated. </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="52%"></TD>
<TD VALIGN="bottom" WIDTH="1%"></TD>
<TD WIDTH="36%"></TD>
<TD VALIGN="bottom" WIDTH="1%"></TD>
<TD WIDTH="10%"></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/ Thomas G. Caldwell</P></TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top">June&nbsp;21,&nbsp;2017</TD></TR>
<TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
<TD VALIGN="top">Thomas&nbsp;G.&nbsp;Caldwell,&nbsp;President,&nbsp;Chief&nbsp;Executive&nbsp;Officer,&nbsp;and&nbsp;Director</TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top"></TD></TR>
<TR STYLE="font-size:1pt">
<TD HEIGHT="16"></TD>
<TD HEIGHT="16" COLSPAN="2"></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"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ Donald L. Stacy</P></TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top">June 21, 2017</TD></TR>
<TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
<TD VALIGN="top">Donald&nbsp;L.&nbsp;Stacy,&nbsp;Chief&nbsp;Financial&nbsp;Officer&nbsp;and&nbsp;Treasurer</TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top"></TD></TR>
<TR STYLE="font-size:1pt">
<TD HEIGHT="16"></TD>
<TD HEIGHT="16" COLSPAN="2"></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"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ Thomas W. Bevan</P></TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top">June 21, 2017</TD></TR>
<TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
<TD VALIGN="top">Thomas W. Bevan, Director</TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top"></TD></TR>
<TR STYLE="font-size:1pt">
<TD HEIGHT="16"></TD>
<TD HEIGHT="16" COLSPAN="2"></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"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ James R. Heslop, II</P></TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top">June 21, 2017</TD></TR>
<TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
<TD VALIGN="top">James&nbsp;R.&nbsp;Heslop,&nbsp;II,&nbsp;Executive&nbsp;Vice&nbsp;President,&nbsp;COO,&nbsp;and&nbsp;Director</TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top"></TD></TR>
<TR STYLE="font-size:1pt">
<TD HEIGHT="16"></TD>
<TD HEIGHT="16" COLSPAN="2"></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"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ Eric P. Hummel</P></TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top">June 21, 2017</TD></TR>
<TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
<TD VALIGN="top">Eric&nbsp;P.&nbsp;Hummel,&nbsp;Director</TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top"></TD></TR>
<TR STYLE="font-size:1pt">
<TD HEIGHT="16"></TD>
<TD HEIGHT="16" COLSPAN="2"></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"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ Kenneth E. Jones</P></TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top">June 21, 2017</TD></TR>
<TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
<TD VALIGN="top">Kenneth&nbsp;E.&nbsp;Jones,&nbsp;Director</TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top"></TD></TR>
<TR STYLE="font-size:1pt">
<TD HEIGHT="16"></TD>
<TD HEIGHT="16" COLSPAN="2"></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"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ Darryl E. Mast</P></TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top">June 21, 2017</TD></TR>
<TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
<TD VALIGN="top">Darryl&nbsp;E.&nbsp;Mast,&nbsp;Director</TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top"></TD></TR></TABLE>

<p Style='page-break-before:always'>
<HR  SIZE="3" style="COLOR:#999999" WIDTH="100%" ALIGN="CENTER">


<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="52%"></TD>
<TD VALIGN="bottom" WIDTH="1%"></TD>
<TD WIDTH="36%"></TD>
<TD VALIGN="bottom" WIDTH="1%"></TD>
<TD WIDTH="10%"></TD></TR>
<TR STYLE="font-size:1pt">
<TD HEIGHT="16"></TD>
<TD HEIGHT="16" COLSPAN="2"></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"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ James J. McCaskey</P></TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top">June&nbsp;21,&nbsp;2017</TD></TR>
<TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
<TD VALIGN="top">James J. McCaskey,&nbsp;Director</TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top"></TD></TR>
<TR STYLE="font-size:1pt">
<TD HEIGHT="16"></TD>
<TD HEIGHT="16" COLSPAN="2"></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"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ Clayton W. Rose, III</P></TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top">June 21, 2017</TD></TR>
<TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
<TD VALIGN="top">Clayton&nbsp;W.&nbsp;Rose,&nbsp;III,&nbsp;Director</TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top"></TD></TR>
<TR STYLE="font-size:1pt">
<TD HEIGHT="16"></TD>
<TD HEIGHT="16" COLSPAN="2"></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"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ William J. Skidmore</P></TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top">June 21, 2017</TD></TR>
<TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
<TD VALIGN="top">William J. Skidmore, Director</TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top"></TD></TR>
<TR STYLE="font-size:1pt">
<TD HEIGHT="16"></TD>
<TD HEIGHT="16" COLSPAN="2"></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"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ Robert W. Toth</P></TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top">June 21, 2017</TD></TR>
<TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
<TD VALIGN="top">Robert W. Toth, Director</TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top"></TD></TR>
<TR STYLE="font-size:1pt">
<TD HEIGHT="16"></TD>
<TD HEIGHT="16" COLSPAN="2"></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"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ Carolyn J. Turk</P></TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top">June 21, 2017</TD></TR>
<TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
<TD VALIGN="top">Carolyn&nbsp;J.&nbsp;Turk,&nbsp;Chairman&nbsp;of&nbsp;the&nbsp;Board&nbsp;and&nbsp;Director</TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top"></TD></TR>
<TR STYLE="font-size:1pt">
<TD HEIGHT="16"></TD>
<TD HEIGHT="16" COLSPAN="2"></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"> <P STYLE="margin-top:0pt; margin-bottom:1pt; border-bottom:1px solid #000000; font-size:10pt; font-family:Times New Roman">/s/ William A. Valerian</P></TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top">June 21, 2017</TD></TR>
<TR STYLE="page-break-inside:avoid ; font-family:Times New Roman; font-size:10pt">
<TD VALIGN="top">William A. Valerian, Director</TD>
<TD VALIGN="bottom">&nbsp;</TD>
<TD VALIGN="top"></TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top"></TD></TR>
</TABLE>

<p Style='page-break-before:always'>
<HR  SIZE="3" style="COLOR:#999999" WIDTH="100%" ALIGN="CENTER">

 <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center"><B>EXHIBIT INDEX </B></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></TD>
<TD VALIGN="bottom" WIDTH="7%"></TD>
<TD WIDTH="90%"></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; width:39.10pt; font-size:8pt; font-family:Times New Roman"><B>Exhibit&nbsp;No.</B></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; width:39.50pt; font-size:8pt; font-family:Times New Roman"><B>Description</B></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">Middlefield Banc Corp. 2017 Omnibus Equity Plan (incorporated by reference to Appendix A to the Registrant&#146;s definitive proxy statement on Schedule 14A filed with the Commission on April 4, 2017, SEC File No. 36613)</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">Specimen common stock certificate (included as Exhibit 4 to Middlefield Banc Corp.&#146;s Form 10-12G Registration Statement filed on April 17, 2001 (SEC File No. 033-23094) and incorporated herein by this reference)</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.3</TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top">Second Amended and Restated Articles of Incorporation of Middlefield Banc Corp., as amended (Incorporated by reference to Exhibit 3.1 of Middlefield Banc Corp.&#146;s Annual Report on Form 10-K for the Fiscal Year Ended December 31,
2005, filed on March 29, 2006, SEC File No. 000-32561)</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.4</TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top">Regulations of Middlefield Banc Corp. (Incorporated by reference to Exhibit 3.2 of Middlefield Banc Corp.&#146;s registration statement on Form 10 filed on April 17, 2001 SEC File No. 000-32561)</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*</TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top">Opinion of Grady &amp; Associates regarding legality</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">Consent of S.R. Snodgrass, P.C.</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">Consent of Grady &amp; Associates (included in Exhibit 5)</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</TD>
<TD VALIGN="bottom">&nbsp;&nbsp;</TD>
<TD VALIGN="top">Power of Attorney (included on the signature page of this Form S-8 registration statement)</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%" VALIGN="top" ALIGN="left">*</TD>
<TD ALIGN="left" VALIGN="top">Filed herewith </TD></TR></TABLE>
</BODY></HTML>
</TEXT>
</DOCUMENT>
<DOCUMENT>
<TYPE>EX-5
<SEQUENCE>2
<FILENAME>d417788dex5.htm
<DESCRIPTION>EX-5
<TEXT>
<HTML><HEAD>
<TITLE>EX-5</TITLE>
</HEAD>
 <BODY BGCOLOR="WHITE">

 <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="right"><B>EXHIBIT 5 </B></P>
<P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:20pt; font-family:Times New Roman" ALIGN="center"><B>G<SMALL>RADY</SMALL>&nbsp;&amp; A<SMALL>SSOCIATES</SMALL> </B></P>
<P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:8pt; font-family:Times New Roman" ALIGN="center">ATTORNEYS&nbsp;&amp; COUNSELORS AT LAW </P>
<P STYLE="margin-top:6pt; margin-bottom:0pt; font-size:8pt; font-family:Times New Roman" ALIGN="center">20220 CENTER RIDGE ROAD, SUITE 300 </P>
<P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:8pt; font-family:Times New Roman" ALIGN="center">ROCKY RIVER, OHIO 44116-3501 </P> <P STYLE="margin-top:6pt; margin-bottom:0pt; font-size:8pt; font-family:Times New Roman" ALIGN="center">(440)
356-7255 </P> <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:8pt; font-family:Times New Roman" ALIGN="center">Fax (440)&nbsp;356-7254 </P>
<P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:8pt; font-family:Times New Roman" ALIGN="center">www.gradyassociates.com </P>
<P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center">June&nbsp;21, 2017 </P> <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman">Board of Directors </P>
<P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman">Middlefield Banc Corp. </P> <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman">15985 East High Street, P.O. Box 35 </P>
<P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman">Middlefield, Ohio 44062-0035 </P> <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman">Re: Form S-8 Registration
Statement of Middlefield Banc Corp. </P> <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman">Gentlemen: </P>
<P STYLE="margin-top:12pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">Middlefield Banc Corp., an Ohio corporation, intends to file with the Securities and Exchange Commission under the Securities Act of 1933 a
Form S-8 registration statement for the offer and sale of up to 224,000 shares of Middlefield Banc Corp. common stock, without par value. The shares may be issued from time to time under the 2017 Omnibus Equity Plan of Middlefield Banc Corp. </P>
<P STYLE="margin-top:12pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">You have requested our opinion in connection with Middlefield Banc Corp.&#146;s filing of the Form S-8 registration statement. We examined and
relied upon originals or copies, certified or otherwise identified to our satisfaction as being true copies, of all records, agreements, certificates of officers, and other documents as we deemed necessary to render the opinions expressed in this
letter. In our examination, we assumed the genuineness of all signatures, the legal capacity of all natural persons, the authenticity of all documents submitted to us as originals and the conformity to authentic original documents of all documents
submitted to us as certified or photostatic copies. We assumed Middlefield Banc Corp. will remain in good standing as an Ohio corporation at all times when shares of its common stock are issued under the terms of the 2017 Omnibus Equity Plan. </P>
<P STYLE="margin-top:12pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">On the basis of and in reliance on the foregoing, we are of the opinion that the shares of Middlefield Banc Corp. common stock to be issued
under the 2017 Omnibus Equity Plan will, when and if issued in accordance with the terms of the plan, be legally issued, fully paid, and nonassessable. </P>
<P STYLE="margin-top:12pt; margin-bottom:0pt; text-indent:4%; font-size:10pt; font-family:Times New Roman">This opinion is solely for your information and is not to be quoted in whole or in part or otherwise referred to, nor is it to be filed with
any governmental agency or other person without our prior written consent. We hereby consent to the filing of this opinion with the Securities and Exchange Commission as an exhibit to the Form S-8 registration statement of Middlefield Banc Corp.
</P> <P STYLE="margin-top:18pt; margin-bottom:0pt; margin-left:54%; text-indent:-2%; font-size:10pt; font-family:Times New Roman">Sincerely, </P>
<P STYLE="margin-top:12pt; margin-bottom:0pt; margin-left:54%; text-indent:-2%; font-size:10pt; font-family:Times New Roman">/s/ GRADY&nbsp;&amp; ASSOCIATES </P>
</BODY></HTML>
</TEXT>
</DOCUMENT>
<DOCUMENT>
<TYPE>EX-23.1
<SEQUENCE>3
<FILENAME>d417788dex231.htm
<DESCRIPTION>EX-23.1
<TEXT>
<HTML><HEAD>
<TITLE>EX-23.1</TITLE>
</HEAD>
 <BODY BGCOLOR="WHITE">

 <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="right"><B>EXHIBIT 23.1 </B></P>
<P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman" ALIGN="center">CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM </P>
<P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman">We consent to the incorporation by reference in this Registration Statement on Form S-8 of Middlefield Banc Corp. of our report dated March 15, 2017, relating
to the consolidated financial statements of Middlefield Banc Corp. appearing in the 2016 Annual Report to Shareholders and incorporated by reference in the Annual Report on Form 10-K of Middlefield Banc Corp. for the year ended December 31, 2016.
</P> <P STYLE="margin-top:18pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman">/s/ S.R. Snodgrass P.C. </P> <P STYLE="margin-top:0pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman">Cranberry Township, Pennsylvania
</P> <P STYLE="margin-top:12pt; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman">June&nbsp;21, 2017 </P>
</BODY></HTML>
</TEXT>
</DOCUMENT>
</SEC-DOCUMENT>
