Valero Energy Corporation
February 7, 2022
Page 2
Based upon and subject to the assumptions, limitations and qualifications set forth herein, I am of the opinion that:
1. Valero is a corporation duly organized and validly existing in good standing under the laws of the State of Delaware.
2. The Notes will, when they have been duly executed, authenticated, issued and delivered in accordance with the provisions of the Senior Indenture and duly purchased and paid for in accordance with the terms of the Underwriting Agreement, constitute legal, valid and binding obligations of Valero, enforceable against Valero in accordance with their terms, except as that enforcement is subject to (a) the effect of any bankruptcy, insolvency, reorganization, moratorium, arrangement or similar laws affecting the rights and remedies of creditors generally, including without limitation the effect of statutory or other laws regarding fraudulent transfers or preferential transfers, (b) general principles of equity, including without limitation concepts of materiality, reasonableness, good faith and fair dealing and the possible unavailability of specific performance, injunctive relief or other equitable remedies regardless of whether enforceability is considered in a proceeding in equity or at law.
The opinions set forth above are limited in all respects to matters of the General Corporation Law of the State of Delaware, the contract laws of the State of New York and the applicable federal laws of the United States, each as in effect on the date hereof, and in each case, exclusive of municipal, local and county ordinances, laws, rules and regulations. At your request, this opinion is being furnished to you for filing as Exhibit 5.1 to Valero’s Current Report on Form 8-K to be filed on the date hereof. Additionally, I hereby consent to the reference to me under the caption “Legal Matters” in the Prospectus. In giving such consent, I do not hereby concede that I am within the category of persons whose consent is required under Section 7 of the Securities Act or the SEC’s rules and regulations promulgated thereunder.
|
Very truly yours, |
|
/s/ Richard J. Walsh |