Exhibit 5.1

NORTH POINT • 901 LAKESIDE AVENUE • CLEVELAND, OHIO 44114.1190
TELEPHONE: +1.216.586.3939 • FACSIMILE: +1.216.579.0212
Marathon Petroleum Corporation
539 South Main Street
Findlay, Ohio 45840
| Re: | Registration Statement on FormS-8 Filed by Marathon Petroleum Corporation |
Ladies and Gentlemen:
We have acted as counsel to Marathon Petroleum Corporation, a Delaware corporation (the “Company”), in connection with the registration under the Securities Act of 1933, as amended (the “Act”), of an aggregate of 2,000,000 shares of common stock, par value $0.01 per share (the “Shares”), of the Company issuable pursuant to the Andeavor 401(k) Plan (the “Plan”).
In connection with the opinion expressed herein, we have examined such documents, records and matters of law as we have deemed relevant or necessary for purposes of this opinion. Based on the foregoing, and subject to the further limitations, qualifications and assumptions set forth herein, we are of the opinion that the Shares that may be issued or delivered and sold pursuant to the Plan will be, when issued or delivered and sold in accordance with such Plan, validly issued, fully paid and nonassessable, provided that the consideration for the Shares is at least equal to the stated par value thereof.
The opinion expressed herein is limited to the General Corporation Law of the State of Delaware, as currently in effect, and we express no opinion as to the effect of the laws of any other jurisdiction on the opinion expressed herein. In addition, we have assumed that the resolutions authorizing the Company to issue or deliver and sell the Shares pursuant to the Plan will be in full force and effect at all times at which the Shares are issued or delivered and sold by the Company, and that the Company will take no action inconsistent with such resolutions.
ALKHOBAR • AMSTERDAM • ATLANTA • BEIJING • BOSTON • BRISBANE • BRUSSELS • CHICAGO • CLEVELAND • COLUMBUS • DALLAS
DETROIT • DUBAI • DÜSSELDORF • FRANKFURT • HONG KONG • HOUSTON • IRVINE • LONDON • LOS ANGELES • MADRID • MELBOURNE
MEXICO CITY • MIAMI • MILAN • MINNEAPOLIS • MOSCOW • MUNICH • NEW YORK • PARIS • PERTH • PITTSBURGH • RIYADH
SAN DIEGO • SAN FRANCISCO • SÃO PAULO • SHANGHAI • SILICON VALLEY • SINGAPORE • SYDNEY • TAIPEI • TOKYO • WASHINGTON