Exhibit 23.1

Consent of Independent Registered Public Accounting Firm
The Board of Directors
Alon USA Energy, Inc.:
We consent to the incorporation by reference in the registration statement (Nos. 333-127051, 333-166812 and 333-214690) on Form S-8, and the registration statements (Nos. 333-171111, 333-182675 and 333-182673) on Form S-3 of Alon USA Energy, Inc. of our reports dated February 27, 2017, with respect to the consolidated balance sheets of Alon USA Energy, Inc. and subsidiaries as of December 31, 2016 and 2015, and the related consolidated statements of operations, comprehensive income, stockholders’ equity and cash flows for each of the years in the three-year period ended December 31, 2016, and the effectiveness of internal control over financial reporting as of December 31, 2016, which reports appear in the December 31, 2016 annual report on Form 10-K of Alon USA Energy, Inc.
/s/ KPMG LLP
Dallas, Texas
February 27, 2017