SEC Info  
    Home      Search      My Interests      Help      Sign In      Please Sign In

Pacific Ethanol, Inc. – ‘10-K’ for 12/31/19 – ‘EX-101.DEF’

On:  Monday, 3/30/20, at 4:13pm ET   ·   For:  12/31/19   ·   Accession #:  1213900-20-7976   ·   File #:  0-21467

Previous ‘10-K’:  ‘10-K/A’ on 4/29/19 for 12/31/18   ·   Next:  ‘10-K/A’ on 4/29/20 for 12/31/19   ·   Latest:  ‘10-K’ on 3/14/24 for 12/31/23   ·   12 References:   

Find Words in Filings emoji
 
  in    Show  and   Hints

  As Of               Filer                 Filing    For·On·As Docs:Size             Issuer                      Filing Agent

 3/30/20  Pacific Ethanol, Inc.             10-K       12/31/19  110:13M                                    Edgar Agents LLC/FA

Annual Report   —   Form 10-K   —   Sect. 13 / 15(d) – SEA’34
Filing Table of Contents

Document/Exhibit                   Description                      Pages   Size 

 1: 10-K        Annual Report                                       HTML    810K 
 2: EX-4.1      Description of Securities Registered Pursuant to    HTML     66K 
                Section 12 of the Securities Exchange Act of 1934                
 3: EX-10.61    Amendment No. 3 to Second Amended and Restated      HTML     26K 
                Credit Agreement Dated November 19, 2019                         
 4: EX-23.1     Consent of Independent Registered Public            HTML     27K 
                Accounting Firm                                                  
 5: EX-31.1     Certification -- §302 - SOA'02                      HTML     31K 
 6: EX-31.2     Certification -- §302 - SOA'02                      HTML     31K 
 7: EX-32.1     Certification -- §906 - SOA'02                      HTML     29K 
98: R1          Document and Entity Information                     HTML     66K 
58: R2          Consolidated Balance Sheets                         HTML    146K 
25: R3          Consolidated Balance Sheets (Parenthetical)         HTML     56K 
80: R4          Consolidated Statements of Operations               HTML     83K 
99: R5          Consolidated Statements of Comprehensive Loss       HTML     47K 
60: R6          Consolidated Statements of Stockholders' Equity     HTML     63K 
27: R7          Consolidated Statements of Cash Flows               HTML    134K 
82: R8          Organization and Significant Accounting Policies.   HTML     92K 
96: R9          Pacific Ethanol Plants.                             HTML     40K 
86: R10         Intercompany Agreements.                            HTML     39K 
101: R11         Segments.                                           HTML     53K  
57: R12         Property and Equipment.                             HTML     35K 
22: R13         Intangible Asset.                                   HTML     30K 
85: R14         Derivatives.                                        HTML     49K 
100: R15         Debt.                                               HTML     81K  
55: R16         Leases.                                             HTML     39K 
21: R17         Pension Plans.                                      HTML     67K 
84: R18         Income Taxes.                                       HTML     66K 
102: R19         Preferred Stock.                                    HTML     44K  
39: R20         Common Stock and Warrants.                          HTML     39K 
31: R21         Stock-Based Compensation.                           HTML     51K 
64: R22         Commitments and Contingencies.                      HTML     36K 
104: R23         Fair Value Measurements.                            HTML     68K  
38: R24         Parent Company Financials.                          HTML     71K 
30: R25         Quarterly Financial Data (Unaudited).               HTML     49K 
63: R26         Subsequent Event.                                   HTML     30K 
103: R27         Organization and Significant Accounting Policies.   HTML    162K  
                (Policies)                                                       
40: R28         Organization and Significant Accounting Policies.   HTML     60K 
                (Tables)                                                         
28: R29         Pacific Ethanol Plants. (Tables)                    HTML     35K 
23: R30         Segments. (Tables)                                  HTML     55K 
61: R31         Property and Equipment. (Tables)                    HTML     33K 
95: R32         Derivatives. (Tables)                               HTML     48K 
81: R33         Debt. (Tables)                                      HTML     43K 
24: R34         Leases. (Tables)                                    HTML     34K 
62: R35         Pension Plans. (Tables)                             HTML     66K 
97: R36         Income Taxes. (Tables)                              HTML     66K 
83: R37         Common Stock and Warrants. (Tables)                 HTML     35K 
26: R38         Stock-Based Compensation. (Tables)                  HTML     55K 
59: R39         Fair Value Measurements. (Tables)                   HTML     65K 
32: R40         Parent Company Financials. (Tables)                 HTML     71K 
42: R41         Quarterly Financial Data (Unaudited). (Tables)      HTML     48K 
109: R42         Organization and Significant Accounting Policies.   HTML     33K  
                (Details)                                                        
70: R43         Organization and Significant Accounting Policies.   HTML     37K 
                (Details 1)                                                      
33: R44         Organization and Significant Accounting Policies.   HTML     44K 
                (Details 2)                                                      
43: R45         Organization and Significant Accounting Policies.   HTML     35K 
                (Details 3)                                                      
110: R46         Organization and Significant Accounting Policies.   HTML     50K  
                (Details 4)                                                      
71: R47         Organization and Significant Accounting Policies.   HTML     80K 
                (Details Narrative)                                              
34: R48         Pacific Ethanol Plants. (Details)                   HTML     65K 
41: R49         Pacific Ethanol Plants. (Details Narrative)         HTML     72K 
48: R50         Intercompany Agreements. (Details Narrative)        HTML     56K 
16: R51         Segments. (Details)                                 HTML     77K 
79: R52         Segments. (Details 1)                               HTML     33K 
94: R53         Segments. (Details Narrative)                       HTML     32K 
47: R54         Property and Equipment. (Details)                   HTML     42K 
15: R55         Property and Equipment. (Details Narrative)         HTML     32K 
78: R56         Intangible Asset. (Details Narrative)               HTML     31K 
93: R57         Derivatives. (Details)                              HTML     34K 
49: R58         Derivatives. (Details 1)                            HTML     37K 
14: R59         Derivatives. (Details Narrative)                    HTML     29K 
68: R60         Debt. (Details)                                     HTML     64K 
106: R61         Debt. (Details 1)                                   HTML     44K  
45: R62         Debt. (Details Narrative)                           HTML    221K 
36: R63         Leases. (Details)                                   HTML     53K 
67: R64         Leases. (Details Narrative)                         HTML     44K 
105: R65         Pension Plans. (Details)                            HTML     82K  
44: R66         Pension Plans. (Details 1)                          HTML     41K 
35: R67         Pension Plans. (Details 2)                          HTML     45K 
65: R68         Pension Plans. (Details 3)                          HTML     58K 
108: R69         Pension Plans. (Details 4)                          HTML     42K  
90: R70         Pension Plans. (Details Narrative)                  HTML     41K 
73: R71         Income Taxes. (Details)                             HTML     36K 
18: R72         Income Taxes. (Details 1)                           HTML     50K 
51: R73         Income Taxes. (Details 2)                           HTML     81K 
91: R74         Income Taxes. (Details 3)                           HTML     41K 
74: R75         Income Taxes. (Details 4)                           HTML     41K 
19: R76         Income Taxes. (Details 5)                           HTML     51K 
53: R77         Income Taxes. (Details Narrative)                   HTML     58K 
88: R78         Preferred Stock. (Details Narrative)                HTML     49K 
77: R79         Common Stock and Warrants. (Details)                HTML     49K 
89: R80         Common Stock and Warrants. (Details Narrative)      HTML     49K 
72: R81         Stock-Based Compensation. (Details)                 HTML     45K 
17: R82         Stock-Based Compensation. (Details 1)               HTML     42K 
50: R83         Stock-Based Compensation. (Details 2)               HTML     51K 
92: R84         Stock-Based Compensation. (Details 3)               HTML     31K 
75: R85         Stock-Based Compensation. (Details Narrative)       HTML     41K 
20: R86         Commitments and Contingencies. (Details Narrative)  HTML     50K 
54: R87         Fair Value Measurements. (Details)                  HTML     43K 
87: R88         Fair Value Measurements. (Details 1)                HTML     92K 
76: R89         Fair Value Measurements. (Details Narrative)        HTML     29K 
69: R90         Parent Company Financials. (Details)                HTML    123K 
107: R91         Parent Company Financials. (Details 1)              HTML     74K  
46: R92         Parent Company Financials. (Details 2)              HTML    116K 
37: R93         Parent Company Financials. (Details Narrative)      HTML     30K 
66: R94         Quarterly Financial Data (Unaudited). (Details)     HTML     51K 
56: XML         IDEA XML File -- Filing Summary                      XML    203K 
52: EXCEL       IDEA Workbook of Financial Reports                  XLSX    122K 
 8: EX-101.INS  XBRL Instance -- peix-20191231                       XML   2.16M 
10: EX-101.CAL  XBRL Calculations -- peix-20191231_cal               XML    221K 
11: EX-101.DEF  XBRL Definitions -- peix-20191231_def                XML   1.05M 
12: EX-101.LAB  XBRL Labels -- peix-20191231_lab                     XML   1.59M 
13: EX-101.PRE  XBRL Presentations -- peix-20191231_pre              XML   1.33M 
 9: EX-101.SCH  XBRL Schema -- peix-20191231                         XSD    254K 
29: ZIP         XBRL Zipped Folder -- 0001213900-20-007976-xbrl      Zip    216K 


‘EX-101.DEF’   —   XBRL Definitions — peix-20191231_def


This Exhibit is an XBRL XML File.


                                                                                                                                                                                
<?xml version="1.0" standalone="no" encoding="windows-1252"?>
<!-- Field: Doc-Info; Name: Generator; Value: GoXBRL; Version: 5.3a -->
<!-- Field: Doc-Info; Name: VendorURI; Value: http://www.novaworks.co -->
<!-- Field: Doc-Info; Name: Source; Value: peix%2D20191231.xfr; Date: 2020%2D03%2D30T04:56:24Z -->
<!-- Field: Doc-Info; Name: Status; Value: 0x00000000 -->
<link:linkbase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xbrli="http://www.xbrl.org/2003/instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
<link:roleRef roleURI="http://pacificethanol.net/role/DocumentAndEntityInformation" xlink:href="peix-20191231.xsd#DocumentAndEntityInformation" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/ConsolidatedBalanceSheets" xlink:href="peix-20191231.xsd#ConsolidatedBalanceSheets" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="peix-20191231.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/ConsolidatedStatementsOfOperations" xlink:href="peix-20191231.xsd#ConsolidatedStatementsOfOperations" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/ConsolidatedStatementsOfComprehensiveLoss" xlink:href="peix-20191231.xsd#ConsolidatedStatementsOfComprehensiveLoss" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/ConsolidatedStatementsOfStockholdersEquity" xlink:href="peix-20191231.xsd#ConsolidatedStatementsOfStockholdersEquity" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/ConsolidatedStatementsOfCashFlows" xlink:href="peix-20191231.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/OrganizationAndSignificantAccountingPolicies." xlink:href="peix-20191231.xsd#OrganizationAndSignificantAccountingPolicies." xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/PacificEthanolPlants." xlink:href="peix-20191231.xsd#PacificEthanolPlants." xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/IntercompanyAgreements." xlink:href="peix-20191231.xsd#IntercompanyAgreements." xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Segments." xlink:href="peix-20191231.xsd#Segments." xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/PropertyAndEquipment." xlink:href="peix-20191231.xsd#PropertyAndEquipment." xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/IntangibleAsset." xlink:href="peix-20191231.xsd#IntangibleAsset." xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Derivatives." xlink:href="peix-20191231.xsd#Derivatives." xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Debt." xlink:href="peix-20191231.xsd#Debt." xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Leases." xlink:href="peix-20191231.xsd#Leases." xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/PensionPlans." xlink:href="peix-20191231.xsd#PensionPlans." xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/IncomeTaxes." xlink:href="peix-20191231.xsd#IncomeTaxes." xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/PreferredStock." xlink:href="peix-20191231.xsd#PreferredStock." xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/CommonStockAndWarrants." xlink:href="peix-20191231.xsd#CommonStockAndWarrants." xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Stock-basedCompensation." xlink:href="peix-20191231.xsd#Stock-basedCompensation." xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/CommitmentsAndContingencies." xlink:href="peix-20191231.xsd#CommitmentsAndContingencies." xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/FairValueMeasurements." xlink:href="peix-20191231.xsd#FairValueMeasurements." xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/ParentCompanyFinancials." xlink:href="peix-20191231.xsd#ParentCompanyFinancials." xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/QuarterlyFinancialDataUnaudited." xlink:href="peix-20191231.xsd#QuarterlyFinancialDataUnaudited." xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/SubsequentEvent." xlink:href="peix-20191231.xsd#SubsequentEvent." xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/OrganizationAndSignificantAccountingPolicies.Policies" xlink:href="peix-20191231.xsd#OrganizationAndSignificantAccountingPolicies.Policies" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/OrganizationAndSignificantAccountingPolicies.Tables" xlink:href="peix-20191231.xsd#OrganizationAndSignificantAccountingPolicies.Tables" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/PacificEthanolPlants.Tables" xlink:href="peix-20191231.xsd#PacificEthanolPlants.Tables" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Segments.Tables" xlink:href="peix-20191231.xsd#Segments.Tables" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/PropertyAndEquipment.Tables" xlink:href="peix-20191231.xsd#PropertyAndEquipment.Tables" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Derivatives.Tables" xlink:href="peix-20191231.xsd#Derivatives.Tables" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Debt.Tables" xlink:href="peix-20191231.xsd#Debt.Tables" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Leases.Tables" xlink:href="peix-20191231.xsd#Leases.Tables" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/PensionPlans.Tables" xlink:href="peix-20191231.xsd#PensionPlans.Tables" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/IncomeTaxes.Tables" xlink:href="peix-20191231.xsd#IncomeTaxes.Tables" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/CommonStockAndWarrants.Tables" xlink:href="peix-20191231.xsd#CommonStockAndWarrants.Tables" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Stock-basedCompensation.Tables" xlink:href="peix-20191231.xsd#Stock-basedCompensation.Tables" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/FairValueMeasurements.Tables" xlink:href="peix-20191231.xsd#FairValueMeasurements.Tables" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/ParentCompanyFinancials.Tables" xlink:href="peix-20191231.xsd#ParentCompanyFinancials.Tables" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/QuarterlyFinancialDataUnaudited.Tables" xlink:href="peix-20191231.xsd#QuarterlyFinancialDataUnaudited.Tables" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/OrganizationAndSignificantAccountingPolicies.Details" xlink:href="peix-20191231.xsd#OrganizationAndSignificantAccountingPolicies.Details" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/OrganizationAndSignificantAccountingPolicies.Details1" xlink:href="peix-20191231.xsd#OrganizationAndSignificantAccountingPolicies.Details1" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/OrganizationAndSignificantAccountingPolicies.Details2" xlink:href="peix-20191231.xsd#OrganizationAndSignificantAccountingPolicies.Details2" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/OrganizationAndSignificantAccountingPolicies.Details3" xlink:href="peix-20191231.xsd#OrganizationAndSignificantAccountingPolicies.Details3" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/OrganizationAndSignificantAccountingPolicies.Details4" xlink:href="peix-20191231.xsd#OrganizationAndSignificantAccountingPolicies.Details4" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/OrganizationAndSignificantAccountingPolicies.DetailsNarrative" xlink:href="peix-20191231.xsd#OrganizationAndSignificantAccountingPolicies.DetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/PacificEthanolPlants.Details" xlink:href="peix-20191231.xsd#PacificEthanolPlants.Details" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/PacificEthanolPlants.DetailsNarrative" xlink:href="peix-20191231.xsd#PacificEthanolPlants.DetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/IntercompanyAgreements.DetailsNarrative" xlink:href="peix-20191231.xsd#IntercompanyAgreements.DetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Segments.Details" xlink:href="peix-20191231.xsd#Segments.Details" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Segments.Details1" xlink:href="peix-20191231.xsd#Segments.Details1" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Segments.DetailsNarrative" xlink:href="peix-20191231.xsd#Segments.DetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/PropertyAndEquipment.Details" xlink:href="peix-20191231.xsd#PropertyAndEquipment.Details" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/PropertyAndEquipment.DetailsNarrative" xlink:href="peix-20191231.xsd#PropertyAndEquipment.DetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/IntangibleAsset.DetailsNarrative" xlink:href="peix-20191231.xsd#IntangibleAsset.DetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Derivatives.Details" xlink:href="peix-20191231.xsd#Derivatives.Details" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Derivatives.Details1" xlink:href="peix-20191231.xsd#Derivatives.Details1" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Derivatives.DetailsNarrative" xlink:href="peix-20191231.xsd#Derivatives.DetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Debt.Details" xlink:href="peix-20191231.xsd#Debt.Details" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Debt.Details1" xlink:href="peix-20191231.xsd#Debt.Details1" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Debt.DetailsNarrative" xlink:href="peix-20191231.xsd#Debt.DetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Leases.Details" xlink:href="peix-20191231.xsd#Leases.Details" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Leases.DetailsNarrative" xlink:href="peix-20191231.xsd#Leases.DetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/PensionPlans.Details" xlink:href="peix-20191231.xsd#PensionPlans.Details" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/PensionPlans.Details1" xlink:href="peix-20191231.xsd#PensionPlans.Details1" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/PensionPlans.Details2" xlink:href="peix-20191231.xsd#PensionPlans.Details2" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/PensionPlans.Details3" xlink:href="peix-20191231.xsd#PensionPlans.Details3" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/PensionPlans.Details4" xlink:href="peix-20191231.xsd#PensionPlans.Details4" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/PensionPlans.DetailsNarrative" xlink:href="peix-20191231.xsd#PensionPlans.DetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/IncomeTaxes.Details" xlink:href="peix-20191231.xsd#IncomeTaxes.Details" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/IncomeTaxes.Details1" xlink:href="peix-20191231.xsd#IncomeTaxes.Details1" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/IncomeTaxes.Details2" xlink:href="peix-20191231.xsd#IncomeTaxes.Details2" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/IncomeTaxes.Details3" xlink:href="peix-20191231.xsd#IncomeTaxes.Details3" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/IncomeTaxes.Details4" xlink:href="peix-20191231.xsd#IncomeTaxes.Details4" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/IncomeTaxes.Details5" xlink:href="peix-20191231.xsd#IncomeTaxes.Details5" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/IncomeTaxes.DetailsNarrative" xlink:href="peix-20191231.xsd#IncomeTaxes.DetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/PreferredStock.DetailsNarrative" xlink:href="peix-20191231.xsd#PreferredStock.DetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/CommonStockAndWarrants.Details" xlink:href="peix-20191231.xsd#CommonStockAndWarrants.Details" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/CommonStockAndWarrants.DetailsNarrative" xlink:href="peix-20191231.xsd#CommonStockAndWarrants.DetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Stock-basedCompensation.Details" xlink:href="peix-20191231.xsd#Stock-basedCompensation.Details" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Stock-basedCompensation.Details1" xlink:href="peix-20191231.xsd#Stock-basedCompensation.Details1" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Stock-basedCompensation.Details2" xlink:href="peix-20191231.xsd#Stock-basedCompensation.Details2" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Stock-basedCompensation.Details3" xlink:href="peix-20191231.xsd#Stock-basedCompensation.Details3" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/Stock-basedCompensation.DetailsNarrative" xlink:href="peix-20191231.xsd#Stock-basedCompensation.DetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/CommitmentsAndContingencies.DetailsNarrative" xlink:href="peix-20191231.xsd#CommitmentsAndContingencies.DetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/FairValueMeasurements.Details" xlink:href="peix-20191231.xsd#FairValueMeasurements.Details" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/FairValueMeasurements.Details1" xlink:href="peix-20191231.xsd#FairValueMeasurements.Details1" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/FairValueMeasurements.DetailsTextual" xlink:href="peix-20191231.xsd#FairValueMeasurements.DetailsTextual" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/ParentCompanyFinancials.Details" xlink:href="peix-20191231.xsd#ParentCompanyFinancials.Details" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/ParentCompanyFinancials.Details1" xlink:href="peix-20191231.xsd#ParentCompanyFinancials.Details1" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/ParentCompanyFinancials.Details2" xlink:href="peix-20191231.xsd#ParentCompanyFinancials.Details2" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/ParentCompanyFinancials.DetailsNarrative" xlink:href="peix-20191231.xsd#ParentCompanyFinancials.DetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://pacificethanol.net/role/QuarterlyFinancialDataUnaudited.Details" xlink:href="peix-20191231.xsd#QuarterlyFinancialDataUnaudited.Details" xlink:type="simple"/>
<link:arcroleRef xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension"/>
<link:arcroleRef xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain"/>
<link:arcroleRef xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member"/>
<link:arcroleRef xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" arcroleURI="http://xbrl.org/int/dim/arcrole/all"/>
<link:arcroleRef xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#notAll" arcroleURI="http://xbrl.org/int/dim/arcrole/notAll"/>
<link:arcroleRef xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/DocumentAndEntityInformation" xlink:title="00000001 - Document - Document and Entity Information"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/ConsolidatedBalanceSheets" xlink:title="00000002 - Statement - CONSOLIDATED BALANCE SHEETS">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaapStatementClassOfStockAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapStatementClassOfStockAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaapClassOfStockDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapStatementClassOfStockAxis" xlink:to="loc_us-gaapClassOfStockDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaapClassOfStockDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementClassOfStockAxis" xlink:to="loc_us-gaapClassOfStockDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SeriesAPreferredStockMember" xlink:label="loc_us-gaapSeriesAPreferredStockMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapClassOfStockDomain" xlink:to="loc_us-gaapSeriesAPreferredStockMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SeriesBPreferredStockMember" xlink:label="loc_us-gaapSeriesBPreferredStockMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapClassOfStockDomain" xlink:to="loc_us-gaapSeriesBPreferredStockMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsAbstract" xlink:label="loc_us-gaapAssetsAbstract_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAssetsAbstract_70" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsCurrentAbstract" xlink:label="loc_us-gaapAssetsCurrentAbstract_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsAbstract_70" xlink:to="loc_us-gaapAssetsCurrentAbstract_70" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaapCashAndCashEquivalentsAtCarryingValue_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsCurrentAbstract_70" xlink:to="loc_us-gaapCashAndCashEquivalentsAtCarryingValue_70" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaapAccountsReceivableNetCurrent_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsCurrentAbstract_70" xlink:to="loc_us-gaapAccountsReceivableNetCurrent_70" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaapInventoryNet_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsCurrentAbstract_70" xlink:to="loc_us-gaapInventoryNet_70" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="loc_us-gaapPrepaidExpenseAndOtherAssetsCurrent_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsCurrentAbstract_70" xlink:to="loc_us-gaapPrepaidExpenseAndOtherAssetsCurrent_70" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeAssetsCurrent" xlink:label="loc_us-gaapDerivativeAssetsCurrent_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsCurrentAbstract_70" xlink:to="loc_us-gaapDerivativeAssetsCurrent_70" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsHeldForSaleNotPartOfDisposalGroupCurrentOther" xlink:label="loc_us-gaapAssetsHeldForSaleNotPartOfDisposalGroupCurrentOther_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsCurrentAbstract_70" xlink:to="loc_us-gaapAssetsHeldForSaleNotPartOfDisposalGroupCurrentOther_70" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssetsCurrent" xlink:label="loc_us-gaapOtherAssetsCurrent_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsCurrentAbstract_70" xlink:to="loc_us-gaapOtherAssetsCurrent_70" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="loc_us-gaapAssetsCurrent_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsCurrentAbstract_70" xlink:to="loc_us-gaapAssetsCurrent_70" xlink:type="arc" order="9"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaapPropertyPlantAndEquipmentNet_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsAbstract_70" xlink:to="loc_us-gaapPropertyPlantAndEquipmentNet_70" xlink:type="arc" order="10"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssetsAbstract" xlink:label="loc_us-gaapOtherAssetsAbstract_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsAbstract_70" xlink:to="loc_us-gaapOtherAssetsAbstract_70" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset" xlink:label="loc_us-gaapOperatingLeaseRightOfUseAsset_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapOtherAssetsAbstract_70" xlink:to="loc_us-gaapOperatingLeaseRightOfUseAsset_70" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsHeldForSaleNotPartOfDisposalGroupCurrent" xlink:label="loc_us-gaapAssetsHeldForSaleNotPartOfDisposalGroupCurrent_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapOtherAssetsAbstract_70" xlink:to="loc_us-gaapAssetsHeldForSaleNotPartOfDisposalGroupCurrent_70" xlink:type="arc" order="13"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaapIntangibleAssetsNetExcludingGoodwill_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapOtherAssetsAbstract_70" xlink:to="loc_us-gaapIntangibleAssetsNetExcludingGoodwill_70" xlink:type="arc" order="14"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="loc_us-gaapOtherAssetsNoncurrent_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapOtherAssetsAbstract_70" xlink:to="loc_us-gaapOtherAssetsNoncurrent_70" xlink:type="arc" order="15"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssets" xlink:label="loc_us-gaapOtherAssets_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapOtherAssetsAbstract_70" xlink:to="loc_us-gaapOtherAssets_70" xlink:type="arc" order="16"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaapAssets_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsAbstract_70" xlink:to="loc_us-gaapAssets_70" xlink:type="arc" order="17"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract" xlink:label="loc_us-gaapLiabilitiesAndStockholdersEquityAbstract_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapLiabilitiesAndStockholdersEquityAbstract_70" xlink:type="arc" order="18"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesCurrentAbstract" xlink:label="loc_us-gaapLiabilitiesCurrentAbstract_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesAndStockholdersEquityAbstract_70" xlink:to="loc_us-gaapLiabilitiesCurrentAbstract_70" xlink:type="arc" order="19"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsPayableTradeCurrent" xlink:label="loc_us-gaapAccountsPayableTradeCurrent_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesCurrentAbstract_70" xlink:to="loc_us-gaapAccountsPayableTradeCurrent_70" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent" xlink:label="loc_us-gaapAccruedLiabilitiesCurrent_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesCurrentAbstract_70" xlink:to="loc_us-gaapAccruedLiabilitiesCurrent_70" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CapitalLeaseObligationsCurrent" xlink:label="loc_us-gaapCapitalLeaseObligationsCurrent_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesCurrentAbstract_70" xlink:to="loc_us-gaapCapitalLeaseObligationsCurrent_70" xlink:type="arc" order="22"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaapLongTermDebtCurrent_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesCurrentAbstract_70" xlink:to="loc_us-gaapLongTermDebtCurrent_70" xlink:type="arc" order="23"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentsAndHedgesLiabilities" xlink:label="loc_us-gaapDerivativeInstrumentsAndHedgesLiabilities_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesCurrentAbstract_70" xlink:to="loc_us-gaapDerivativeInstrumentsAndHedgesLiabilities_70" xlink:type="arc" order="24"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_LiabilitiesHeldforsale" xlink:label="loc_peixLiabilitiesHeldforsale_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesCurrentAbstract_70" xlink:to="loc_peixLiabilitiesHeldforsale_70" xlink:type="arc" order="25"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherLiabilitiesCurrent" xlink:label="loc_us-gaapOtherLiabilitiesCurrent_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesCurrentAbstract_70" xlink:to="loc_us-gaapOtherLiabilitiesCurrent_70" xlink:type="arc" order="26"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaapLiabilitiesCurrent_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesCurrentAbstract_70" xlink:to="loc_us-gaapLiabilitiesCurrent_70" xlink:type="arc" order="27"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaapLongTermDebtNoncurrent_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesAndStockholdersEquityAbstract_70" xlink:to="loc_us-gaapLongTermDebtNoncurrent_70" xlink:type="arc" order="28"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseLiabilityCurrent" xlink:label="loc_us-gaapOperatingLeaseLiabilityCurrent_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesAndStockholdersEquityAbstract_70" xlink:to="loc_us-gaapOperatingLeaseLiabilityCurrent_70" xlink:type="arc" order="29"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaapOtherLiabilitiesNoncurrent_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesAndStockholdersEquityAbstract_70" xlink:to="loc_us-gaapOtherLiabilitiesNoncurrent_70" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaapLiabilities_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesAndStockholdersEquityAbstract_70" xlink:to="loc_us-gaapLiabilities_70" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommitmentsAndContingencies" xlink:label="loc_us-gaapCommitmentsAndContingencies_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesAndStockholdersEquityAbstract_70" xlink:to="loc_us-gaapCommitmentsAndContingencies_70" xlink:type="arc" order="32"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract" xlink:label="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_70" xlink:type="arc" order="33"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PreferredStockValue" xlink:label="loc_us-gaapPreferredStockValue_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_70" xlink:to="loc_us-gaapPreferredStockValue_70" xlink:type="arc" order="34"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaapCommonStockValue_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_70" xlink:to="loc_us-gaapCommonStockValue_70" xlink:type="arc" order="35"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_NonvotingCommonStockValue" xlink:label="loc_peixNonvotingCommonStockValue_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_70" xlink:to="loc_peixNonvotingCommonStockValue_70" xlink:type="arc" order="36"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdditionalPaidInCapital" xlink:label="loc_us-gaapAdditionalPaidInCapital_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_70" xlink:to="loc_us-gaapAdditionalPaidInCapital_70" xlink:type="arc" order="37"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaapAccumulatedOtherComprehensiveIncomeLossNetOfTax_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_70" xlink:to="loc_us-gaapAccumulatedOtherComprehensiveIncomeLossNetOfTax_70" xlink:type="arc" order="38"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaapRetainedEarningsAccumulatedDeficit_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_70" xlink:to="loc_us-gaapRetainedEarningsAccumulatedDeficit_70" xlink:type="arc" order="39"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaapStockholdersEquity_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_70" xlink:to="loc_us-gaapStockholdersEquity_70" xlink:type="arc" order="40"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MinorityInterest" xlink:label="loc_us-gaapMinorityInterest_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_70" xlink:to="loc_us-gaapMinorityInterest_70" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_70" xlink:to="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_70" xlink:type="arc" order="42"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaapLiabilitiesAndStockholdersEquity_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_70" xlink:to="loc_us-gaapLiabilitiesAndStockholdersEquity_70" xlink:type="arc" order="43"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/ConsolidatedBalanceSheetsParenthetical" xlink:title="00000003 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaapStatementClassOfStockAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapStatementClassOfStockAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaapClassOfStockDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapStatementClassOfStockAxis" xlink:to="loc_us-gaapClassOfStockDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaapClassOfStockDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementClassOfStockAxis" xlink:to="loc_us-gaapClassOfStockDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SeriesAPreferredStockMember" xlink:label="loc_us-gaapSeriesAPreferredStockMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapClassOfStockDomain" xlink:to="loc_us-gaapSeriesAPreferredStockMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SeriesBPreferredStockMember" xlink:label="loc_us-gaapSeriesBPreferredStockMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapClassOfStockDomain" xlink:to="loc_us-gaapSeriesBPreferredStockMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NonvotingCommonStockMember" xlink:label="loc_us-gaapNonvotingCommonStockMember_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapClassOfStockDomain" xlink:to="loc_us-gaapNonvotingCommonStockMember_60" xlink:type="arc" order="61"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent" xlink:label="loc_us-gaapAllowanceForDoubtfulAccountsReceivableCurrent_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAllowanceForDoubtfulAccountsReceivableCurrent_90" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PreferredStockParOrStatedValuePerShare" xlink:label="loc_us-gaapPreferredStockParOrStatedValuePerShare_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapPreferredStockParOrStatedValuePerShare_90" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PreferredStockSharesAuthorized" xlink:label="loc_us-gaapPreferredStockSharesAuthorized_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapPreferredStockSharesAuthorized_90" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PreferredStockSharesIssued" xlink:label="loc_us-gaapPreferredStockSharesIssued_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapPreferredStockSharesIssued_90" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PreferredStockSharesOutstanding" xlink:label="loc_us-gaapPreferredStockSharesOutstanding_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapPreferredStockSharesOutstanding_90" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PreferredStockLiquidationPreferenceValue" xlink:label="loc_us-gaapPreferredStockLiquidationPreferenceValue_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapPreferredStockLiquidationPreferenceValue_90" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockParOrStatedValuePerShare" xlink:label="loc_us-gaapCommonStockParOrStatedValuePerShare_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapCommonStockParOrStatedValuePerShare_90" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockSharesAuthorized" xlink:label="loc_us-gaapCommonStockSharesAuthorized_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapCommonStockSharesAuthorized_90" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="loc_us-gaapCommonStockSharesIssued_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapCommonStockSharesIssued_90" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockSharesOutstanding" xlink:label="loc_us-gaapCommonStockSharesOutstanding_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapCommonStockSharesOutstanding_90" xlink:type="arc" order="9"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/ConsolidatedStatementsOfOperations" xlink:title="00000004 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/ConsolidatedStatementsOfComprehensiveLoss" xlink:title="00000005 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE LOSS"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/ConsolidatedStatementsOfStockholdersEquity" xlink:title="00000006 - Statement - CONSOLIDATED STATEMENTS OF STOCKHOLDERS&apos; EQUITY">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaapStatementEquityComponentsAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapStatementEquityComponentsAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaapEquityComponentDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapStatementEquityComponentsAxis" xlink:to="loc_us-gaapEquityComponentDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaapEquityComponentDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementEquityComponentsAxis" xlink:to="loc_us-gaapEquityComponentDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PreferredStockMember" xlink:label="loc_us-gaapPreferredStockMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityComponentDomain" xlink:to="loc_us-gaapPreferredStockMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaapCommonStockMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityComponentDomain" xlink:to="loc_us-gaapCommonStockMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="loc_us-gaapAdditionalPaidInCapitalMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityComponentDomain" xlink:to="loc_us-gaapAdditionalPaidInCapitalMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaapRetainedEarningsMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityComponentDomain" xlink:to="loc_us-gaapRetainedEarningsMember_30" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_us-gaapAccumulatedOtherComprehensiveIncomeMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityComponentDomain" xlink:to="loc_us-gaapAccumulatedOtherComprehensiveIncomeMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoncontrollingInterestMember" xlink:label="loc_us-gaapNoncontrollingInterestMember_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityComponentDomain" xlink:to="loc_us-gaapNoncontrollingInterestMember_50" xlink:type="arc" order="51"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_80" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SharesOutstanding" xlink:label="loc_us-gaapSharesOutstanding_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapSharesOutstanding_80" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalShareBasedCompensationRestrictedStockUnitsRequisiteServicePeriodRecognition" xlink:label="loc_us-gaapAdjustmentsToAdditionalPaidInCapitalShareBasedCompensationRestrictedStockUnitsRequisiteServicePeriodRecognition_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAdjustmentsToAdditionalPaidInCapitalShareBasedCompensationRestrictedStockUnitsRequisiteServicePeriodRecognition_80" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_StockbasedCompensationExpenseRestrictedStockAndOptionsToEmployeesAndDirectorsNetOfCancellationsShares" xlink:label="loc_peixStockbasedCompensationExpenseRestrictedStockAndOptionsToEmployeesAndDirectorsNetOfCancellationsShares_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixStockbasedCompensationExpenseRestrictedStockAndOptionsToEmployeesAndDirectorsNetOfCancellationsShares_80" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueOther" xlink:label="loc_us-gaapStockIssuedDuringPeriodValueOther_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodValueOther_80" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesOther" xlink:label="loc_us-gaapStockIssuedDuringPeriodSharesOther_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodSharesOther_80" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_SeniorNotesAmendmentStockIssuance" xlink:label="loc_peixSeniorNotesAmendmentStockIssuance_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixSeniorNotesAmendmentStockIssuance_80" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_SeniorNotesAmendmentStockIssuanceShares" xlink:label="loc_peixSeniorNotesAmendmentStockIssuanceShares_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixSeniorNotesAmendmentStockIssuanceShares_80" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueIssuedForServices" xlink:label="loc_us-gaapStockIssuedDuringPeriodValueIssuedForServices_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodValueIssuedForServices_80" xlink:type="arc" order="9"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesIssuedForServices" xlink:label="loc_us-gaapStockIssuedDuringPeriodSharesIssuedForServices_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodSharesIssuedForServices_80" xlink:type="arc" order="10"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeBenefitPlan" xlink:label="loc_us-gaapStockIssuedDuringPeriodValueEmployeeBenefitPlan_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodValueEmployeeBenefitPlan_80" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DividendsPreferredStock" xlink:label="loc_us-gaapDividendsPreferredStock_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDividendsPreferredStock_80" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaapProfitLoss_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapProfitLoss_80" xlink:type="arc" order="13"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/ConsolidatedStatementsOfCashFlows" xlink:title="00000007 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/OrganizationAndSignificantAccountingPolicies." xlink:title="00000008 - Disclosure - ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES."/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/PacificEthanolPlants." xlink:title="00000009 - Disclosure - PACIFIC ETHANOL PLANTS."/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/IntercompanyAgreements." xlink:title="00000010 - Disclosure - INTERCOMPANY AGREEMENTS."/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Segments." xlink:title="00000011 - Disclosure - SEGMENTS."/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/PropertyAndEquipment." xlink:title="00000012 - Disclosure - PROPERTY AND EQUIPMENT."/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/IntangibleAsset." xlink:title="00000013 - Disclosure - INTANGIBLE ASSET."/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Derivatives." xlink:title="00000014 - Disclosure - DERIVATIVES."/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Debt." xlink:title="00000015 - Disclosure - DEBT."/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Leases." xlink:title="00000016 - Disclosure - LEASES."/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/PensionPlans." xlink:title="00000017 - Disclosure - PENSION PLANS."/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/IncomeTaxes." xlink:title="00000018 - Disclosure - INCOME TAXES."/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/PreferredStock." xlink:title="00000019 - Disclosure - PREFERRED STOCK."/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/CommonStockAndWarrants." xlink:title="00000020 - Disclosure - COMMON STOCK AND WARRANTS."/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Stock-basedCompensation." xlink:title="00000021 - Disclosure - STOCK-BASED COMPENSATION."/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/CommitmentsAndContingencies." xlink:title="00000022 - Disclosure - COMMITMENTS AND CONTINGENCIES."/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/FairValueMeasurements." xlink:title="00000023 - Disclosure - FAIR VALUE MEASUREMENTS."/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/ParentCompanyFinancials." xlink:title="00000024 - Disclosure - PARENT COMPANY FINANCIALS."/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/QuarterlyFinancialDataUnaudited." xlink:title="00000025 - Disclosure - QUARTERLY FINANCIAL DATA (UNAUDITED)."/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/SubsequentEvent." xlink:title="00000026 - Disclosure - SUBSEQUENT EVENT."/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/OrganizationAndSignificantAccountingPolicies.Policies" xlink:title="00000027 - Disclosure - ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES. (Policies)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/OrganizationAndSignificantAccountingPolicies.Tables" xlink:title="00000028 - Disclosure - ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES. (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/PacificEthanolPlants.Tables" xlink:title="00000029 - Disclosure - PACIFIC ETHANOL PLANTS. (Tables)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaapBusinessAcquisitionAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapBusinessAcquisitionAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaapBusinessAcquisitionAcquireeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapBusinessAcquisitionAxis" xlink:to="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaapBusinessAcquisitionAcquireeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapBusinessAcquisitionAxis" xlink:to="loc_us-gaapBusinessAcquisitionAcquireeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_PacificAuroraMember" xlink:label="loc_peixPacificAuroraMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:to="loc_peixPacificAuroraMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTextBlock" xlink:label="loc_us-gaapScheduleOfDefinedBenefitPlansDisclosuresTextBlock_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapScheduleOfDefinedBenefitPlansDisclosuresTextBlock_20" xlink:type="arc" order="0"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Segments.Tables" xlink:title="00000030 - Disclosure - SEGMENTS. (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/PropertyAndEquipment.Tables" xlink:title="00000031 - Disclosure - PROPERTY AND EQUIPMENT. (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Derivatives.Tables" xlink:title="00000032 - Disclosure - DERIVATIVES. (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Debt.Tables" xlink:title="00000033 - Disclosure - DEBT. (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Leases.Tables" xlink:title="00000034 - Disclosure - LEASES. (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/PensionPlans.Tables" xlink:title="00000035 - Disclosure - PENSION PLANS. (Tables)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameAxis" xlink:label="loc_us-gaapRetirementPlanNameAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapRetirementPlanNameAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameDomain" xlink:label="loc_us-gaapRetirementPlanNameDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapRetirementPlanNameAxis" xlink:to="loc_us-gaapRetirementPlanNameDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameDomain" xlink:label="loc_us-gaapRetirementPlanNameDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapRetirementPlanNameAxis" xlink:to="loc_us-gaapRetirementPlanNameDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_PostretirementPlanMember" xlink:label="loc_peixPostretirementPlanMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRetirementPlanNameDomain" xlink:to="loc_peixPostretirementPlanMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_RetirementPlanMember" xlink:label="loc_peixRetirementPlanMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRetirementPlanNameDomain" xlink:to="loc_peixRetirementPlanMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTextBlock" xlink:label="loc_us-gaapScheduleOfDefinedBenefitPlansDisclosuresTextBlock_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapScheduleOfDefinedBenefitPlansDisclosuresTextBlock_30" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfExpectedBenefitPaymentsTableTextBlock" xlink:label="loc_us-gaapScheduleOfExpectedBenefitPaymentsTableTextBlock_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapScheduleOfExpectedBenefitPaymentsTableTextBlock_30" xlink:type="arc" order="2"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/IncomeTaxes.Tables" xlink:title="00000036 - Disclosure - INCOME TAXES. (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/CommonStockAndWarrants.Tables" xlink:title="00000037 - Disclosure - COMMON STOCK AND WARRANTS. (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Stock-basedCompensation.Tables" xlink:title="00000038 - Disclosure - STOCK-BASED COMPENSATION. (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/FairValueMeasurements.Tables" xlink:title="00000039 - Disclosure - FAIR VALUE MEASUREMENTS. (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/ParentCompanyFinancials.Tables" xlink:title="00000040 - Disclosure - PARENT COMPANY FINANCIALS. (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/QuarterlyFinancialDataUnaudited.Tables" xlink:title="00000041 - Disclosure - QUARTERLY FINANCIAL DATA (UNAUDITED). (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/OrganizationAndSignificantAccountingPolicies.Details" xlink:title="00000042 - Disclosure - ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES. (Details)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaapConcentrationRiskByBenchmarkAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapConcentrationRiskByBenchmarkAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaapConcentrationRiskBenchmarkDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapConcentrationRiskByBenchmarkAxis" xlink:to="loc_us-gaapConcentrationRiskBenchmarkDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaapConcentrationRiskBenchmarkDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapConcentrationRiskByBenchmarkAxis" xlink:to="loc_us-gaapConcentrationRiskBenchmarkDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SalesMember" xlink:label="loc_us-gaapSalesMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapConcentrationRiskBenchmarkDomain" xlink:to="loc_us-gaapSalesMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MajorCustomersAxis" xlink:label="loc_srtMajorCustomersAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtMajorCustomersAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_NameOfMajorCustomerDomain" xlink:label="loc_srtNameOfMajorCustomerDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtMajorCustomersAxis" xlink:to="loc_srtNameOfMajorCustomerDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_NameOfMajorCustomerDomain" xlink:label="loc_srtNameOfMajorCustomerDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtMajorCustomersAxis" xlink:to="loc_srtNameOfMajorCustomerDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_CustomeraMember" xlink:label="loc_peixCustomeraMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtNameOfMajorCustomerDomain" xlink:to="loc_peixCustomeraMember_0" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_CustomerbMember" xlink:label="loc_peixCustomerbMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtNameOfMajorCustomerDomain" xlink:to="loc_peixCustomerbMember_10" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaapConcentrationRiskPercentage1_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapConcentrationRiskPercentage1_50" xlink:type="arc" order="0"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/OrganizationAndSignificantAccountingPolicies.Details1" xlink:title="00000043 - Disclosure - ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES. (Details 1)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaapConcentrationRiskByBenchmarkAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapConcentrationRiskByBenchmarkAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaapConcentrationRiskBenchmarkDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapConcentrationRiskByBenchmarkAxis" xlink:to="loc_us-gaapConcentrationRiskBenchmarkDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaapConcentrationRiskBenchmarkDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapConcentrationRiskByBenchmarkAxis" xlink:to="loc_us-gaapConcentrationRiskBenchmarkDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CostOfGoodsTotalMember" xlink:label="loc_us-gaapCostOfGoodsTotalMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapConcentrationRiskBenchmarkDomain" xlink:to="loc_us-gaapCostOfGoodsTotalMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="loc_us-gaapConcentrationRiskByTypeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapConcentrationRiskByTypeAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaapConcentrationRiskTypeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapConcentrationRiskByTypeAxis" xlink:to="loc_us-gaapConcentrationRiskTypeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaapConcentrationRiskTypeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapConcentrationRiskByTypeAxis" xlink:to="loc_us-gaapConcentrationRiskTypeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_SupplierbMember" xlink:label="loc_peixSupplierbMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapConcentrationRiskTypeDomain" xlink:to="loc_peixSupplierbMember_0" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_SupplieraMember" xlink:label="loc_peixSupplieraMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapConcentrationRiskTypeDomain" xlink:to="loc_peixSupplieraMember_10" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_SupplierDMember" xlink:label="loc_peixSupplierDMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapConcentrationRiskTypeDomain" xlink:to="loc_peixSupplierDMember_20" xlink:type="arc" order="22"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_SupplierCMember" xlink:label="loc_peixSupplierCMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapConcentrationRiskTypeDomain" xlink:to="loc_peixSupplierCMember_30" xlink:type="arc" order="32"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaapConcentrationRiskPercentage1_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapConcentrationRiskPercentage1_90" xlink:type="arc" order="0"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/OrganizationAndSignificantAccountingPolicies.Details2" xlink:title="00000044 - Disclosure - ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES. (Details 2)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/OrganizationAndSignificantAccountingPolicies.Details3" xlink:title="00000045 - Disclosure - ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES. (Details 3)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaapPropertyPlantAndEquipmentByTypeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapPropertyPlantAndEquipmentByTypeAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaapPropertyPlantAndEquipmentTypeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapPropertyPlantAndEquipmentByTypeAxis" xlink:to="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaapPropertyPlantAndEquipmentTypeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapPropertyPlantAndEquipmentByTypeAxis" xlink:to="loc_us-gaapPropertyPlantAndEquipmentTypeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BuildingMember" xlink:label="loc_us-gaapBuildingMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_us-gaapBuildingMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_FacilitiesAndPlanEquipmentMember" xlink:label="loc_peixFacilitiesAndPlanEquipmentMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_peixFacilitiesAndPlanEquipmentMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherMachineryAndEquipmentMember" xlink:label="loc_us-gaapOtherMachineryAndEquipmentMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_us-gaapOtherMachineryAndEquipmentMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeAxis" xlink:label="loc_srtRangeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtRangeAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember" xlink:label="loc_srtRangeMember"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtRangeAxis" xlink:to="loc_srtRangeMember" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember" xlink:label="loc_srtRangeMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtRangeAxis" xlink:to="loc_srtRangeMember_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MinimumMember" xlink:label="loc_srtMinimumMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRangeMember" xlink:to="loc_srtMinimumMember_20" xlink:type="arc" order="22"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MaximumMember" xlink:label="loc_srtMaximumMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRangeMember" xlink:to="loc_srtMaximumMember_30" xlink:type="arc" order="32"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife" xlink:label="loc_us-gaapPropertyPlantAndEquipmentUsefulLife_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapPropertyPlantAndEquipmentUsefulLife_70" xlink:type="arc" order="0"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/OrganizationAndSignificantAccountingPolicies.Details4" xlink:title="00000046 - Disclosure - ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES. (Details 4)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/OrganizationAndSignificantAccountingPolicies.DetailsNarrative" xlink:title="00000047 - Disclosure - ORGANIZATION AND SIGNIFICANT ACCOUNTING POLICIES. (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaapBusinessAcquisitionAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapBusinessAcquisitionAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaapBusinessAcquisitionAcquireeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapBusinessAcquisitionAxis" xlink:to="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaapBusinessAcquisitionAcquireeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapBusinessAcquisitionAxis" xlink:to="loc_us-gaapBusinessAcquisitionAcquireeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_PacificAuroraMember" xlink:label="loc_peixPacificAuroraMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:to="loc_peixPacificAuroraMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_deiLegalEntityAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_deiLegalEntityAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_deiEntityDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_deiLegalEntityAxis" xlink:to="loc_deiEntityDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_deiEntityDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_deiLegalEntityAxis" xlink:to="loc_deiEntityDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_AuroraCooperativeElevatorCompanyMemeberMember" xlink:label="loc_peixAuroraCooperativeElevatorCompanyMemeberMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_deiEntityDomain" xlink:to="loc_peixAuroraCooperativeElevatorCompanyMemeberMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srtConsolidatedEntitiesAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtConsolidatedEntitiesAxis" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srtConsolidatedEntitiesDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtConsolidatedEntitiesAxis" xlink:to="loc_srtConsolidatedEntitiesDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srtConsolidatedEntitiesDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtConsolidatedEntitiesAxis" xlink:to="loc_srtConsolidatedEntitiesDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_KinergyMarketingLLCMember" xlink:label="loc_peixKinergyMarketingLLCMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtConsolidatedEntitiesDomain" xlink:to="loc_peixKinergyMarketingLLCMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MajorCustomersAxis" xlink:label="loc_srtMajorCustomersAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtMajorCustomersAxis" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_NameOfMajorCustomerDomain" xlink:label="loc_srtNameOfMajorCustomerDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtMajorCustomersAxis" xlink:to="loc_srtNameOfMajorCustomerDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_NameOfMajorCustomerDomain" xlink:label="loc_srtNameOfMajorCustomerDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtMajorCustomersAxis" xlink:to="loc_srtNameOfMajorCustomerDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_CustomerAAndBMember" xlink:label="loc_peixCustomerAAndBMember_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtNameOfMajorCustomerDomain" xlink:to="loc_peixCustomerAAndBMember_90" xlink:type="arc" order="91"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityMethodInvestmentOwnershipPercentage" xlink:label="loc_us-gaapEquityMethodInvestmentOwnershipPercentage_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapEquityMethodInvestmentOwnershipPercentage_140" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_EthanolProductionCapacityPerYear" xlink:label="loc_peixEthanolProductionCapacityPerYear_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixEthanolProductionCapacityPerYear_140" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_EthanolMarketCapacityPerYear" xlink:label="loc_peixEthanolMarketCapacityPerYear_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixEthanolMarketCapacityPerYear_140" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_OtherProductsProducedPerYear" xlink:label="loc_peixOtherProductsProducedPerYear_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixOtherProductsProducedPerYear_140" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PledgedAssetsSeparatelyReportedFinanceReceivablesPledgedAsCollateralAtFairValue" xlink:label="loc_us-gaapPledgedAssetsSeparatelyReportedFinanceReceivablesPledgedAsCollateralAtFairValue_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapPledgedAssetsSeparatelyReportedFinanceReceivablesPledgedAsCollateralAtFairValue_140" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent" xlink:label="loc_us-gaapAllowanceForDoubtfulAccountsReceivableCurrent_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAllowanceForDoubtfulAccountsReceivableCurrent_140" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProvisionForDoubtfulAccounts" xlink:label="loc_us-gaapProvisionForDoubtfulAccounts_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapProvisionForDoubtfulAccounts_140" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaapAccountsReceivableNetCurrent_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAccountsReceivableNetCurrent_140" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaapConcentrationRiskPercentage1_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapConcentrationRiskPercentage1_140" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FIFOInventoryAmount" xlink:label="loc_us-gaapFIFOInventoryAmount_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapFIFOInventoryAmount_140" xlink:type="arc" order="9"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AmortizationOfFinancingCosts" xlink:label="loc_us-gaapAmortizationOfFinancingCosts_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAmortizationOfFinancingCosts_140" xlink:type="arc" order="10"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet" xlink:label="loc_us-gaapDebtInstrumentUnamortizedDiscountPremiumNet_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentUnamortizedDiscountPremiumNet_140" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:label="loc_us-gaapEffectiveIncomeTaxRateContinuingOperations_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapEffectiveIncomeTaxRateContinuingOperations_140" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes" xlink:label="loc_us-gaapEffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapEffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_140" xlink:type="arc" order="13"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:label="loc_us-gaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_140" xlink:type="arc" order="14"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_EmployeesCoveredByCollectiveBargainingAgreement" xlink:label="loc_peixEmployeesCoveredByCollectiveBargainingAgreement_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixEmployeesCoveredByCollectiveBargainingAgreement_140" xlink:type="arc" order="15"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_TotalPurchaseOfEthanol" xlink:label="loc_peixTotalPurchaseOfEthanol_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixTotalPurchaseOfEthanol_140" xlink:type="arc" order="16"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_ConserveCapitalPercentage" xlink:label="loc_peixConserveCapitalPercentage_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixConserveCapitalPercentage_140" xlink:type="arc" order="17"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/PacificEthanolPlants.Details" xlink:title="00000048 - Disclosure - PACIFIC ETHANOL PLANTS. (Details)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaapBusinessAcquisitionAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapBusinessAcquisitionAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaapBusinessAcquisitionAcquireeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapBusinessAcquisitionAxis" xlink:to="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaapBusinessAcquisitionAcquireeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapBusinessAcquisitionAxis" xlink:to="loc_us-gaapBusinessAcquisitionAcquireeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_PacificAuroraMember" xlink:label="loc_peixPacificAuroraMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:to="loc_peixPacificAuroraMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_20" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInventory" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInventory_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInventory_20" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_20" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssets" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssets_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssets_20" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_20" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_20" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets_20" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsNoncurrent" xlink:label="loc_us-gaapAssetsNoncurrent_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAssetsNoncurrent_20" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsHeldInTrustNoncurrent" xlink:label="loc_us-gaapAssetsHeldInTrustNoncurrent_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAssetsHeldInTrustNoncurrent_20" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayableAndAccruedExpenses" xlink:label="loc_peixBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayableAndAccruedExpenses_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayableAndAccruedExpenses_20" xlink:type="arc" order="9"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_20" xlink:type="arc" order="10"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities_20" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther_20" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_20" xlink:type="arc" order="13"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/PacificEthanolPlants.DetailsNarrative" xlink:title="00000049 - Disclosure - PACIFIC ETHANOL PLANTS. (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaapSubsequentEventTypeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapSubsequentEventTypeAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaapSubsequentEventTypeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapSubsequentEventTypeAxis" xlink:to="loc_us-gaapSubsequentEventTypeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaapSubsequentEventTypeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapSubsequentEventTypeAxis" xlink:to="loc_us-gaapSubsequentEventTypeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaapSubsequentEventMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSubsequentEventTypeDomain" xlink:to="loc_us-gaapSubsequentEventMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaapBusinessAcquisitionAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapBusinessAcquisitionAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaapBusinessAcquisitionAcquireeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapBusinessAcquisitionAxis" xlink:to="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaapBusinessAcquisitionAcquireeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapBusinessAcquisitionAxis" xlink:to="loc_us-gaapBusinessAcquisitionAcquireeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_PacificAuroraMember" xlink:label="loc_peixPacificAuroraMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:to="loc_peixPacificAuroraMember_0" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_PECentralMember" xlink:label="loc_peixPECentralMember_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:to="loc_peixPECentralMember_50" xlink:type="arc" order="51"/>
<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_deiLegalEntityAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_deiLegalEntityAxis" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_deiEntityDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_deiLegalEntityAxis" xlink:to="loc_deiEntityDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_deiEntityDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_deiLegalEntityAxis" xlink:to="loc_deiEntityDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_AuroraCooperativeElevatorCompanyMemeberMember" xlink:label="loc_peixAuroraCooperativeElevatorCompanyMemeberMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_deiEntityDomain" xlink:to="loc_peixAuroraCooperativeElevatorCompanyMemeberMember_0" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_DescriptionOfAgreementClosedTerm" xlink:label="loc_peixDescriptionOfAgreementClosedTerm_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixDescriptionOfAgreementClosedTerm_100" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityMethodInvestmentOwnershipPercentage" xlink:label="loc_us-gaapEquityMethodInvestmentOwnershipPercentage_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapEquityMethodInvestmentOwnershipPercentage_100" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromDivestitureOfBusinessesAndInterestsInAffiliates" xlink:label="loc_us-gaapProceedsFromDivestitureOfBusinessesAndInterestsInAffiliates_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapProceedsFromDivestitureOfBusinessesAndInterestsInAffiliates_100" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_AdditionalPaidInCapitalForBookValueAndContributionAndSale" xlink:label="loc_peixAdditionalPaidInCapitalForBookValueAndContributionAndSale_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixAdditionalPaidInCapitalForBookValueAndContributionAndSale_100" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationIndemnificationAssetsAmountAsOfAcquisitionDate" xlink:label="loc_us-gaapBusinessCombinationIndemnificationAssetsAmountAsOfAcquisitionDate_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapBusinessCombinationIndemnificationAssetsAmountAsOfAcquisitionDate_100" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_BusinessCombinationPromissoryNotes" xlink:label="loc_peixBusinessCombinationPromissoryNotes_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixBusinessCombinationPromissoryNotes_100" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned" xlink:label="loc_us-gaapBusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapBusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned_100" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_BusinessCombinationImapirmentOfAssetsHeldForSale" xlink:label="loc_peixBusinessCombinationImapirmentOfAssetsHeldForSale_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixBusinessCombinationImapirmentOfAssetsHeldForSale_100" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax" xlink:label="loc_us-gaapRevenueFromContractWithCustomerIncludingAssessedTax_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapRevenueFromContractWithCustomerIncludingAssessedTax_100" xlink:type="arc" order="9"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_100" xlink:type="arc" order="10"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaapNetIncomeLoss_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapNetIncomeLoss_100" xlink:type="arc" order="11"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/IntercompanyAgreements.DetailsNarrative" xlink:title="00000050 - Disclosure - INTERCOMPANY AGREEMENTS. (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfArrangementAxis" xlink:label="loc_us-gaapTypeOfArrangementAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapTypeOfArrangementAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="loc_us-gaapArrangementsAndNonarrangementTransactionsMember"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapTypeOfArrangementAxis" xlink:to="loc_us-gaapArrangementsAndNonarrangementTransactionsMember" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="loc_us-gaapArrangementsAndNonarrangementTransactionsMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapTypeOfArrangementAxis" xlink:to="loc_us-gaapArrangementsAndNonarrangementTransactionsMember_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_AffiliateManagementAgreementMember" xlink:label="loc_peixAffiliateManagementAgreementMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapArrangementsAndNonarrangementTransactionsMember" xlink:to="loc_peixAffiliateManagementAgreementMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_EthanolMarketingAgreementMember" xlink:label="loc_peixEthanolMarketingAgreementMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapArrangementsAndNonarrangementTransactionsMember" xlink:to="loc_peixEthanolMarketingAgreementMember_30" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_CornProcurementAgreementMember" xlink:label="loc_peixCornProcurementAgreementMember_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapArrangementsAndNonarrangementTransactionsMember" xlink:to="loc_peixCornProcurementAgreementMember_60" xlink:type="arc" order="61"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_DistillersGrainsMarketingAgreementsMember" xlink:label="loc_peixDistillersGrainsMarketingAgreementsMember_120"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapArrangementsAndNonarrangementTransactionsMember" xlink:to="loc_peixDistillersGrainsMarketingAgreementsMember_120" xlink:type="arc" order="121"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaapRelatedPartyTransactionsByRelatedPartyAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapRelatedPartyTransactionsByRelatedPartyAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaapRelatedPartyDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapRelatedPartyTransactionsByRelatedPartyAxis" xlink:to="loc_us-gaapRelatedPartyDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaapRelatedPartyDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapRelatedPartyTransactionsByRelatedPartyAxis" xlink:to="loc_us-gaapRelatedPartyDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_KinergyMarketingMember" xlink:label="loc_peixKinergyMarketingMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRelatedPartyDomain" xlink:to="loc_peixKinergyMarketingMember_30" xlink:type="arc" order="32"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_PacificAgProductsMember" xlink:label="loc_peixPacificAgProductsMember_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRelatedPartyDomain" xlink:to="loc_peixPacificAgProductsMember_60" xlink:type="arc" order="62"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srtConsolidatedEntitiesAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtConsolidatedEntitiesAxis" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srtConsolidatedEntitiesDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtConsolidatedEntitiesAxis" xlink:to="loc_srtConsolidatedEntitiesDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srtConsolidatedEntitiesDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtConsolidatedEntitiesAxis" xlink:to="loc_srtConsolidatedEntitiesDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_PacificAuroraMember" xlink:label="loc_peixPacificAuroraMember_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtConsolidatedEntitiesDomain" xlink:to="loc_peixPacificAuroraMember_90" xlink:type="arc" order="92"/>
<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_deiLegalEntityAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_deiLegalEntityAxis" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_deiEntityDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_deiLegalEntityAxis" xlink:to="loc_deiEntityDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_deiEntityDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_deiLegalEntityAxis" xlink:to="loc_deiEntityDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_AuroraCoopElevatorMember" xlink:label="loc_peixAuroraCoopElevatorMember_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_deiEntityDomain" xlink:to="loc_peixAuroraCoopElevatorMember_90" xlink:type="arc" order="93"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_AgreementTerm" xlink:label="loc_peixAgreementTerm_150"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixAgreementTerm_150" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_AgreementRenewalTerm" xlink:label="loc_peixAgreementRenewalTerm_150"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixAgreementRenewalTerm_150" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_DescriptionOfAgreementTermination" xlink:label="loc_peixDescriptionOfAgreementTermination_150"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixDescriptionOfAgreementTermination_150" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_DeliveringAndProcessingServicesFeesPerDollar" xlink:label="loc_peixDeliveringAndProcessingServicesFeesPerDollar_150"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixDeliveringAndProcessingServicesFeesPerDollar_150" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromRelatedParties" xlink:label="loc_us-gaapRevenueFromRelatedParties_150"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapRevenueFromRelatedParties_150" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_NumberOfPlants" xlink:label="loc_peixNumberOfPlants_150"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixNumberOfPlants_150" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_GrainProcurementExpenses" xlink:label="loc_peixGrainProcurementExpenses_150"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixGrainProcurementExpenses_150" xlink:type="arc" order="6"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Segments.Details" xlink:title="00000051 - Disclosure - SEGMENTS. (Details)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaapStatementBusinessSegmentsAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapStatementBusinessSegmentsAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaapSegmentDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapStatementBusinessSegmentsAxis" xlink:to="loc_us-gaapSegmentDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaapSegmentDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementBusinessSegmentsAxis" xlink:to="loc_us-gaapSegmentDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_EthanolProductionMember" xlink:label="loc_peixEthanolProductionMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSegmentDomain" xlink:to="loc_peixEthanolProductionMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_MarketingAndDistributionMember" xlink:label="loc_peixMarketingAndDistributionMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSegmentDomain" xlink:to="loc_peixMarketingAndDistributionMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_MarketingMember" xlink:label="loc_peixMarketingMember_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSegmentDomain" xlink:to="loc_peixMarketingMember_70" xlink:type="arc" order="71"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_CorporateActivitiesMember" xlink:label="loc_peixCorporateActivitiesMember_110"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSegmentDomain" xlink:to="loc_peixCorporateActivitiesMember_110" xlink:type="arc" order="111"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsegmentsAxis" xlink:label="loc_us-gaapSubsegmentsAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapSubsegmentsAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsegmentsDomain" xlink:label="loc_us-gaapSubsegmentsDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapSubsegmentsAxis" xlink:to="loc_us-gaapSubsegmentsDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsegmentsDomain" xlink:label="loc_us-gaapSubsegmentsDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapSubsegmentsAxis" xlink:to="loc_us-gaapSubsegmentsDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_EthanolalcoholMember" xlink:label="loc_peixEthanolalcoholMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSubsegmentsDomain" xlink:to="loc_peixEthanolalcoholMember_0" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_CoproductSalesMember" xlink:label="loc_peixCoproductSalesMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSubsegmentsDomain" xlink:to="loc_peixCoproductSalesMember_10" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_IntersegmentSalesMember" xlink:label="loc_peixIntersegmentSalesMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSubsegmentsDomain" xlink:to="loc_peixIntersegmentSalesMember_20" xlink:type="arc" order="22"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_EthanolalcoholSalesGrossMember" xlink:label="loc_peixEthanolalcoholSalesGrossMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSubsegmentsDomain" xlink:to="loc_peixEthanolalcoholSalesGrossMember_40" xlink:type="arc" order="42"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_EthanolalcoholSalesNetMember" xlink:label="loc_peixEthanolalcoholSalesNetMember_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSubsegmentsDomain" xlink:to="loc_peixEthanolalcoholSalesNetMember_50" xlink:type="arc" order="52"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IntersubsegmentEliminationsMember" xlink:label="loc_us-gaapIntersubsegmentEliminationsMember_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSubsegmentsDomain" xlink:to="loc_us-gaapIntersubsegmentEliminationsMember_60" xlink:type="arc" order="62"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsegmentsConsolidationItemsAxis" xlink:label="loc_us-gaapSubsegmentsConsolidationItemsAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapSubsegmentsConsolidationItemsAxis" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsegmentsConsolidationItemsDomain" xlink:label="loc_us-gaapSubsegmentsConsolidationItemsDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapSubsegmentsConsolidationItemsAxis" xlink:to="loc_us-gaapSubsegmentsConsolidationItemsDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsegmentsConsolidationItemsDomain" xlink:label="loc_us-gaapSubsegmentsConsolidationItemsDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapSubsegmentsConsolidationItemsAxis" xlink:to="loc_us-gaapSubsegmentsConsolidationItemsDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IntersubsegmentEliminationsMember" xlink:label="loc_us-gaapIntersubsegmentEliminationsMember_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSubsegmentsConsolidationItemsDomain" xlink:to="loc_us-gaapIntersubsegmentEliminationsMember_80" xlink:type="arc" order="81"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax" xlink:label="loc_us-gaapRevenueFromContractWithCustomerIncludingAssessedTax_250"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapRevenueFromContractWithCustomerIncludingAssessedTax_250" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CostOfGoodsAndServicesSold" xlink:label="loc_us-gaapCostOfGoodsAndServicesSold_250"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapCostOfGoodsAndServicesSold_250" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_250"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_250" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DepreciationAndAmortization" xlink:label="loc_us-gaapDepreciationAndAmortization_250"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDepreciationAndAmortization_250" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaapInterestExpense_250"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapInterestExpense_250" xlink:type="arc" order="4"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Segments.Details1" xlink:title="00000052 - Disclosure - SEGMENTS. (Details 1)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaapStatementBusinessSegmentsAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapStatementBusinessSegmentsAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaapSegmentDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapStatementBusinessSegmentsAxis" xlink:to="loc_us-gaapSegmentDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaapSegmentDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementBusinessSegmentsAxis" xlink:to="loc_us-gaapSegmentDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_EthanolProductionMember" xlink:label="loc_peixEthanolProductionMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSegmentDomain" xlink:to="loc_peixEthanolProductionMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_MarketingAndDistributionMember" xlink:label="loc_peixMarketingAndDistributionMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSegmentDomain" xlink:to="loc_peixMarketingAndDistributionMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_CorporateAssetsMember" xlink:label="loc_peixCorporateAssetsMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSegmentDomain" xlink:to="loc_peixCorporateAssetsMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaapAssets_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAssets_90" xlink:type="arc" order="0"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Segments.DetailsNarrative" xlink:title="00000053 - Disclosure - SEGMENTS. (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaapStatementBusinessSegmentsAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapStatementBusinessSegmentsAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaapSegmentDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapStatementBusinessSegmentsAxis" xlink:to="loc_us-gaapSegmentDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaapSegmentDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementBusinessSegmentsAxis" xlink:to="loc_us-gaapSegmentDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_EthanolProductionMember" xlink:label="loc_peixEthanolProductionMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSegmentDomain" xlink:to="loc_peixEthanolProductionMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_MarketingAndDistributionMember" xlink:label="loc_peixMarketingAndDistributionMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSegmentDomain" xlink:to="loc_peixMarketingAndDistributionMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NumberOfOperatingSegments" xlink:label="loc_us-gaapNumberOfOperatingSegments_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapNumberOfOperatingSegments_60" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_ManagementFees" xlink:label="loc_peixManagementFees_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixManagementFees_60" xlink:type="arc" order="1"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/PropertyAndEquipment.Details" xlink:title="00000054 - Disclosure - PROPERTY AND EQUIPMENT. (Details)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaapPropertyPlantAndEquipmentByTypeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapPropertyPlantAndEquipmentByTypeAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaapPropertyPlantAndEquipmentTypeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapPropertyPlantAndEquipmentByTypeAxis" xlink:to="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaapPropertyPlantAndEquipmentTypeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapPropertyPlantAndEquipmentByTypeAxis" xlink:to="loc_us-gaapPropertyPlantAndEquipmentTypeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_FacilitiesAndPlanEquipmentMember" xlink:label="loc_peixFacilitiesAndPlanEquipmentMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_peixFacilitiesAndPlanEquipmentMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LandMember" xlink:label="loc_us-gaapLandMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_us-gaapLandMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherMachineryAndEquipmentMember" xlink:label="loc_us-gaapOtherMachineryAndEquipmentMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_us-gaapOtherMachineryAndEquipmentMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConstructionInProgressMember" xlink:label="loc_us-gaapConstructionInProgressMember_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_us-gaapConstructionInProgressMember_60" xlink:type="arc" order="61"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="loc_us-gaapPropertyPlantAndEquipmentGross_110"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapPropertyPlantAndEquipmentGross_110" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaapAccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_110"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_110" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaapPropertyPlantAndEquipmentNet_110"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapPropertyPlantAndEquipmentNet_110" xlink:type="arc" order="2"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/PropertyAndEquipment.DetailsNarrative" xlink:title="00000055 - Disclosure - PROPERTY AND EQUIPMENT. (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaapPropertyPlantAndEquipmentByTypeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapPropertyPlantAndEquipmentByTypeAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaapPropertyPlantAndEquipmentTypeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapPropertyPlantAndEquipmentByTypeAxis" xlink:to="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaapPropertyPlantAndEquipmentTypeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapPropertyPlantAndEquipmentByTypeAxis" xlink:to="loc_us-gaapPropertyPlantAndEquipmentTypeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_CapitalInvestmentActivitiesMember" xlink:label="loc_peixCapitalInvestmentActivitiesMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_peixCapitalInvestmentActivitiesMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Depreciation" xlink:label="loc_us-gaapDepreciation_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDepreciation_50" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestCostsCapitalized" xlink:label="loc_us-gaapInterestCostsCapitalized_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapInterestCostsCapitalized_50" xlink:type="arc" order="1"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/IntangibleAsset.DetailsNarrative" xlink:title="00000056 - Disclosure - INTANGIBLE ASSET. (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaapIndefiniteLivedIntangibleAssetsByMajorClassAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapIndefiniteLivedIntangibleAssetsByMajorClassAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaapIndefiniteLivedIntangibleAssetsMajorClassNameDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapIndefiniteLivedIntangibleAssetsByMajorClassAxis" xlink:to="loc_us-gaapIndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaapIndefiniteLivedIntangibleAssetsMajorClassNameDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapIndefiniteLivedIntangibleAssetsByMajorClassAxis" xlink:to="loc_us-gaapIndefiniteLivedIntangibleAssetsMajorClassNameDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TradeNamesMember" xlink:label="loc_us-gaapTradeNamesMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="loc_us-gaapTradeNamesMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaapRelatedPartyTransactionsByRelatedPartyAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapRelatedPartyTransactionsByRelatedPartyAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaapRelatedPartyDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapRelatedPartyTransactionsByRelatedPartyAxis" xlink:to="loc_us-gaapRelatedPartyDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaapRelatedPartyDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapRelatedPartyTransactionsByRelatedPartyAxis" xlink:to="loc_us-gaapRelatedPartyDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_KinergyMarketingMember" xlink:label="loc_peixKinergyMarketingMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRelatedPartyDomain" xlink:to="loc_peixKinergyMarketingMember_0" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaapIntangibleAssetsNetExcludingGoodwill_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapIntangibleAssetsNetExcludingGoodwill_20" xlink:type="arc" order="0"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Derivatives.Details" xlink:title="00000057 - Disclosure - DERIVATIVES. (Details)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationAxis" xlink:label="loc_us-gaapHedgingDesignationAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapHedgingDesignationAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaapHedgingDesignationDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapHedgingDesignationAxis" xlink:to="loc_us-gaapHedgingDesignationDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaapHedgingDesignationDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapHedgingDesignationAxis" xlink:to="loc_us-gaapHedgingDesignationDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NondesignatedMember" xlink:label="loc_us-gaapNondesignatedMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapHedgingDesignationDomain" xlink:to="loc_us-gaapNondesignatedMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaapDerivativeInstrumentRiskAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapDerivativeInstrumentRiskAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaapDerivativeContractTypeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapDerivativeInstrumentRiskAxis" xlink:to="loc_us-gaapDerivativeContractTypeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaapDerivativeContractTypeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapDerivativeInstrumentRiskAxis" xlink:to="loc_us-gaapDerivativeContractTypeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_CashCollateralBalanceMember" xlink:label="loc_peixCashCollateralBalanceMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDerivativeContractTypeDomain" xlink:to="loc_peixCashCollateralBalanceMember_0" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommodityContractMember" xlink:label="loc_us-gaapCommodityContractMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDerivativeContractTypeDomain" xlink:to="loc_us-gaapCommodityContractMember_10" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsAssetAtFairValue" xlink:label="loc_us-gaapDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsAssetAtFairValue_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsAssetAtFairValue_50" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsLiabilityAtFairValue" xlink:label="loc_us-gaapDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsLiabilityAtFairValue_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDerivativeInstrumentsNotDesignatedAsHedgingInstrumentsLiabilityAtFairValue_50" xlink:type="arc" order="1"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Derivatives.Details1" xlink:title="00000058 - Disclosure - DERIVATIVES. (Details 1)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems" xlink:label="loc_us-gaapDerivativeInstrumentsGainLossLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" xlink:label="loc_us-gaapDerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapDerivativeInstrumentsGainLossLineItems" xlink:to="loc_us-gaapDerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationAxis" xlink:label="loc_us-gaapHedgingDesignationAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapDerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" xlink:to="loc_us-gaapHedgingDesignationAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaapHedgingDesignationDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapHedgingDesignationAxis" xlink:to="loc_us-gaapHedgingDesignationDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaapHedgingDesignationDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapHedgingDesignationAxis" xlink:to="loc_us-gaapHedgingDesignationDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NondesignatedMember" xlink:label="loc_us-gaapNondesignatedMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapHedgingDesignationDomain" xlink:to="loc_us-gaapNondesignatedMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaapDerivativeInstrumentRiskAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapDerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" xlink:to="loc_us-gaapDerivativeInstrumentRiskAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaapDerivativeContractTypeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapDerivativeInstrumentRiskAxis" xlink:to="loc_us-gaapDerivativeContractTypeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaapDerivativeContractTypeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapDerivativeInstrumentRiskAxis" xlink:to="loc_us-gaapDerivativeContractTypeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommodityContractMember" xlink:label="loc_us-gaapCommodityContractMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDerivativeContractTypeDomain" xlink:to="loc_us-gaapCommodityContractMember_0" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaapIncomeStatementLocationAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapDerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" xlink:to="loc_us-gaapIncomeStatementLocationAxis" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaapIncomeStatementLocationDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapIncomeStatementLocationAxis" xlink:to="loc_us-gaapIncomeStatementLocationDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaapIncomeStatementLocationDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapIncomeStatementLocationAxis" xlink:to="loc_us-gaapIncomeStatementLocationDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CostOfSalesMember" xlink:label="loc_us-gaapCostOfSalesMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeStatementLocationDomain" xlink:to="loc_us-gaapCostOfSalesMember_0" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainLossOnDerivativeInstrumentsNetPretax" xlink:label="loc_us-gaapGainLossOnDerivativeInstrumentsNetPretax_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDerivativeInstrumentsGainLossLineItems" xlink:to="loc_us-gaapGainLossOnDerivativeInstrumentsNetPretax_50" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_UnrealizedGainLossOnDerivativesAndCommodityContracts" xlink:label="loc_us-gaapUnrealizedGainLossOnDerivativesAndCommodityContracts_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDerivativeInstrumentsGainLossLineItems" xlink:to="loc_us-gaapUnrealizedGainLossOnDerivativesAndCommodityContracts_50" xlink:type="arc" order="1"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Derivatives.DetailsNarrative" xlink:title="00000059 - Disclosure - DERIVATIVES. (Details Narrative)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Debt.Details" xlink:title="00000060 - Disclosure - DEBT. (Details)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srtConsolidatedEntitiesAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtConsolidatedEntitiesAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srtConsolidatedEntitiesDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtConsolidatedEntitiesAxis" xlink:to="loc_srtConsolidatedEntitiesDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srtConsolidatedEntitiesDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtConsolidatedEntitiesAxis" xlink:to="loc_srtConsolidatedEntitiesDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_KinergyMarketingLLCMember" xlink:label="loc_peixKinergyMarketingLLCMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtConsolidatedEntitiesDomain" xlink:to="loc_peixKinergyMarketingLLCMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_PacificEthanolPekinIncMember" xlink:label="loc_peixPacificEthanolPekinIncMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtConsolidatedEntitiesDomain" xlink:to="loc_peixPacificEthanolPekinIncMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaapCreditFacilityAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapCreditFacilityAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaapCreditFacilityDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapCreditFacilityAxis" xlink:to="loc_us-gaapCreditFacilityDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaapCreditFacilityDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapCreditFacilityAxis" xlink:to="loc_us-gaapCreditFacilityDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditMember" xlink:label="loc_us-gaapLineOfCreditMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapCreditFacilityDomain" xlink:to="loc_us-gaapLineOfCreditMember_0" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevolvingCreditFacilityMember" xlink:label="loc_us-gaapRevolvingCreditFacilityMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapCreditFacilityDomain" xlink:to="loc_us-gaapRevolvingCreditFacilityMember_20" xlink:type="arc" order="22"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaapDebtInstrumentAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapDebtInstrumentAxis" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaapDebtInstrumentNameDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapDebtInstrumentAxis" xlink:to="loc_us-gaapDebtInstrumentNameDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaapDebtInstrumentNameDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapDebtInstrumentAxis" xlink:to="loc_us-gaapDebtInstrumentNameDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_TermLoanMember" xlink:label="loc_peixTermLoanMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDebtInstrumentNameDomain" xlink:to="loc_peixTermLoanMember_10" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_ParentNotesPayableMember" xlink:label="loc_peixParentNotesPayableMember_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDebtInstrumentNameDomain" xlink:to="loc_peixParentNotesPayableMember_50" xlink:type="arc" order="51"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaapBusinessAcquisitionAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapBusinessAcquisitionAxis" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaapBusinessAcquisitionAcquireeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapBusinessAcquisitionAxis" xlink:to="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaapBusinessAcquisitionAcquireeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapBusinessAcquisitionAxis" xlink:to="loc_us-gaapBusinessAcquisitionAcquireeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_IllinoisCornProcessingLLCMember" xlink:label="loc_peixIllinoisCornProcessingLLCMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:to="loc_peixIllinoisCornProcessingLLCMember_30" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtByComponentsAlternativeAbstract" xlink:label="loc_us-gaapLongTermDebtByComponentsAlternativeAbstract_150"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapLongTermDebtByComponentsAlternativeAbstract_150" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCredit" xlink:label="loc_us-gaapLineOfCredit_150"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongTermDebtByComponentsAlternativeAbstract_150" xlink:to="loc_us-gaapLineOfCredit_150" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShortTermBorrowings" xlink:label="loc_us-gaapShortTermBorrowings_150"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongTermDebtByComponentsAlternativeAbstract_150" xlink:to="loc_us-gaapShortTermBorrowings_150" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NotesPayable" xlink:label="loc_us-gaapNotesPayable_150"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongTermDebtByComponentsAlternativeAbstract_150" xlink:to="loc_us-gaapNotesPayable_150" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaapLongTermDebt_150"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongTermDebtByComponentsAlternativeAbstract_150" xlink:to="loc_us-gaapLongTermDebt_150" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscount" xlink:label="loc_us-gaapDebtInstrumentUnamortizedDiscount_150"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongTermDebtByComponentsAlternativeAbstract_150" xlink:to="loc_us-gaapDebtInstrumentUnamortizedDiscount_150" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_UnamortizedDebtIssuanceExpense" xlink:label="loc_us-gaapUnamortizedDebtIssuanceExpense_150"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongTermDebtByComponentsAlternativeAbstract_150" xlink:to="loc_us-gaapUnamortizedDebtIssuanceExpense_150" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaapLongTermDebtCurrent_150"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongTermDebtByComponentsAlternativeAbstract_150" xlink:to="loc_us-gaapLongTermDebtCurrent_150" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaapLongTermDebtNoncurrent_150"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongTermDebtByComponentsAlternativeAbstract_150" xlink:to="loc_us-gaapLongTermDebtNoncurrent_150" xlink:type="arc" order="8"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Debt.Details1" xlink:title="00000061 - Disclosure - DEBT. (Details 1)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Debt.DetailsNarrative" xlink:title="00000062 - Disclosure - DEBT. (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaapRelatedPartyTransactionsByRelatedPartyAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapRelatedPartyTransactionsByRelatedPartyAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaapRelatedPartyDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapRelatedPartyTransactionsByRelatedPartyAxis" xlink:to="loc_us-gaapRelatedPartyDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaapRelatedPartyDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapRelatedPartyTransactionsByRelatedPartyAxis" xlink:to="loc_us-gaapRelatedPartyDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_ICPMember" xlink:label="loc_peixICPMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRelatedPartyDomain" xlink:to="loc_peixICPMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_PekinMember" xlink:label="loc_peixPekinMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRelatedPartyDomain" xlink:to="loc_peixPekinMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_FiveAccreditedInvestorsMember" xlink:label="loc_peixFiveAccreditedInvestorsMember_360"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRelatedPartyDomain" xlink:to="loc_peixFiveAccreditedInvestorsMember_360" xlink:type="arc" order="362"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaapDebtInstrumentAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapDebtInstrumentAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaapDebtInstrumentNameDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapDebtInstrumentAxis" xlink:to="loc_us-gaapDebtInstrumentNameDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaapDebtInstrumentNameDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapDebtInstrumentAxis" xlink:to="loc_us-gaapDebtInstrumentNameDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NotesPayableOtherPayablesMember" xlink:label="loc_us-gaapNotesPayableOtherPayablesMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDebtInstrumentNameDomain" xlink:to="loc_us-gaapNotesPayableOtherPayablesMember_0" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_TermLoanMember" xlink:label="loc_peixTermLoanMember_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDebtInstrumentNameDomain" xlink:to="loc_peixTermLoanMember_70" xlink:type="arc" order="74"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_NotesPayableOtherPayables1Member" xlink:label="loc_peixNotesPayableOtherPayables1Member_370"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDebtInstrumentNameDomain" xlink:to="loc_peixNotesPayableOtherPayables1Member_370" xlink:type="arc" order="373"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaapSubsequentEventTypeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapSubsequentEventTypeAxis" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaapSubsequentEventTypeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapSubsequentEventTypeAxis" xlink:to="loc_us-gaapSubsequentEventTypeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaapSubsequentEventTypeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapSubsequentEventTypeAxis" xlink:to="loc_us-gaapSubsequentEventTypeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaapSubsequentEventMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSubsequentEventTypeDomain" xlink:to="loc_us-gaapSubsequentEventMember_0" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srtConsolidatedEntitiesAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtConsolidatedEntitiesAxis" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srtConsolidatedEntitiesDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtConsolidatedEntitiesAxis" xlink:to="loc_srtConsolidatedEntitiesDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srtConsolidatedEntitiesDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtConsolidatedEntitiesAxis" xlink:to="loc_srtConsolidatedEntitiesDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_KinergyMarketingLLCMember" xlink:label="loc_peixKinergyMarketingLLCMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtConsolidatedEntitiesDomain" xlink:to="loc_peixKinergyMarketingLLCMember_30" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_PacificEthanolPekinIncMember" xlink:label="loc_peixPacificEthanolPekinIncMember_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtConsolidatedEntitiesDomain" xlink:to="loc_peixPacificEthanolPekinIncMember_70" xlink:type="arc" order="72"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_PacificAgProductsLLCMember" xlink:label="loc_peixPacificAgProductsLLCMember_390"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtConsolidatedEntitiesDomain" xlink:to="loc_peixPacificAgProductsLLCMember_390" xlink:type="arc" order="391"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaapCreditFacilityAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapCreditFacilityAxis" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaapCreditFacilityDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapCreditFacilityAxis" xlink:to="loc_us-gaapCreditFacilityDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaapCreditFacilityDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapCreditFacilityAxis" xlink:to="loc_us-gaapCreditFacilityDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditMember" xlink:label="loc_us-gaapLineOfCreditMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapCreditFacilityDomain" xlink:to="loc_us-gaapLineOfCreditMember_30" xlink:type="arc" order="32"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevolvingCreditFacilityMember" xlink:label="loc_us-gaapRevolvingCreditFacilityMember_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapCreditFacilityDomain" xlink:to="loc_us-gaapRevolvingCreditFacilityMember_90" xlink:type="arc" order="94"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeAxis" xlink:label="loc_srtRangeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtRangeAxis" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember" xlink:label="loc_srtRangeMember"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtRangeAxis" xlink:to="loc_srtRangeMember" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember" xlink:label="loc_srtRangeMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtRangeAxis" xlink:to="loc_srtRangeMember_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MaximumMember" xlink:label="loc_srtMaximumMember_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRangeMember" xlink:to="loc_srtMaximumMember_50" xlink:type="arc" order="53"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MinimumMember" xlink:label="loc_srtMinimumMember_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRangeMember" xlink:to="loc_srtMinimumMember_60" xlink:type="arc" order="63"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfArrangementAxis" xlink:label="loc_us-gaapTypeOfArrangementAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapTypeOfArrangementAxis" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="loc_us-gaapArrangementsAndNonarrangementTransactionsMember"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapTypeOfArrangementAxis" xlink:to="loc_us-gaapArrangementsAndNonarrangementTransactionsMember" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="loc_us-gaapArrangementsAndNonarrangementTransactionsMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapTypeOfArrangementAxis" xlink:to="loc_us-gaapArrangementsAndNonarrangementTransactionsMember_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_CreditAgreementMember" xlink:label="loc_peixCreditAgreementMember_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapArrangementsAndNonarrangementTransactionsMember" xlink:to="loc_peixCreditAgreementMember_70" xlink:type="arc" order="71"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_AmendmentCreditAgreementMember" xlink:label="loc_peixAmendmentCreditAgreementMember_130"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapArrangementsAndNonarrangementTransactionsMember" xlink:to="loc_peixAmendmentCreditAgreementMember_130" xlink:type="arc" order="131"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_SecondNotePurchaseAgreementMember" xlink:label="loc_peixSecondNotePurchaseAgreementMember_360"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapArrangementsAndNonarrangementTransactionsMember" xlink:to="loc_peixSecondNotePurchaseAgreementMember_360" xlink:type="arc" order="361"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_NotePurchaseAgreementMember" xlink:label="loc_peixNotePurchaseAgreementMember_370"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapArrangementsAndNonarrangementTransactionsMember" xlink:to="loc_peixNotePurchaseAgreementMember_370" xlink:type="arc" order="371"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditFacilityAxis" xlink:label="loc_us-gaapLineOfCreditFacilityAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapLineOfCreditFacilityAxis" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="loc_us-gaapLineOfCreditFacilityLenderDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapLineOfCreditFacilityAxis" xlink:to="loc_us-gaapLineOfCreditFacilityLenderDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditFacilityLenderDomain" xlink:label="loc_us-gaapLineOfCreditFacilityLenderDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapLineOfCreditFacilityAxis" xlink:to="loc_us-gaapLineOfCreditFacilityLenderDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_FarmCredit1stServicesMember" xlink:label="loc_peixFarmCredit1stServicesMember_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLineOfCreditFacilityLenderDomain" xlink:to="loc_peixFarmCredit1stServicesMember_70" xlink:type="arc" order="73"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaapBusinessAcquisitionAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapBusinessAcquisitionAxis" xlink:type="arc" order="9"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaapBusinessAcquisitionAcquireeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapBusinessAcquisitionAxis" xlink:to="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaapBusinessAcquisitionAcquireeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapBusinessAcquisitionAxis" xlink:to="loc_us-gaapBusinessAcquisitionAcquireeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_PECentralMember" xlink:label="loc_peixPECentralMember_200"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:to="loc_peixPECentralMember_200" xlink:type="arc" order="204"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_IllinoisCornProcessingLLCMember" xlink:label="loc_peixIllinoisCornProcessingLLCMember_240"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:to="loc_peixIllinoisCornProcessingLLCMember_240" xlink:type="arc" order="243"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaapStatementEquityComponentsAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapStatementEquityComponentsAxis" xlink:type="arc" order="10"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaapEquityComponentDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapStatementEquityComponentsAxis" xlink:to="loc_us-gaapEquityComponentDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaapEquityComponentDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementEquityComponentsAxis" xlink:to="loc_us-gaapEquityComponentDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WarrantMember" xlink:label="loc_us-gaapWarrantMember_490"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityComponentDomain" xlink:to="loc_us-gaapWarrantMember_490" xlink:type="arc" order="491"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity" xlink:label="loc_us-gaapLineOfCreditFacilityMaximumBorrowingCapacity_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapLineOfCreditFacilityMaximumBorrowingCapacity_510" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditFacilityExpirationDate1" xlink:label="loc_us-gaapLineOfCreditFacilityExpirationDate1_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapLineOfCreditFacilityExpirationDate1_510" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditFacilityInterestRateDescription" xlink:label="loc_us-gaapLineOfCreditFacilityInterestRateDescription_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapLineOfCreditFacilityInterestRateDescription_510" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditFacilityInterestRateAtPeriodEnd" xlink:label="loc_us-gaapLineOfCreditFacilityInterestRateAtPeriodEnd_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapLineOfCreditFacilityInterestRateAtPeriodEnd_510" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_LineOfCreditFacilityInterestMarginRate" xlink:label="loc_peixLineOfCreditFacilityInterestMarginRate_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixLineOfCreditFacilityInterestMarginRate_510" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage" xlink:label="loc_us-gaapLineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapLineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_510" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_DescriptionOfPaymentMadeToCompany" xlink:label="loc_peixDescriptionOfPaymentMadeToCompany_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixDescriptionOfPaymentMadeToCompany_510" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditFacilityCollateral" xlink:label="loc_us-gaapLineOfCreditFacilityCollateral_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapLineOfCreditFacilityCollateral_510" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity" xlink:label="loc_us-gaapLineOfCreditFacilityRemainingBorrowingCapacity_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapLineOfCreditFacilityRemainingBorrowingCapacity_510" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentFaceAmount" xlink:label="loc_us-gaapDebtInstrumentFaceAmount_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentFaceAmount_510" xlink:type="arc" order="9"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentMaturityDate" xlink:label="loc_us-gaapDebtInstrumentMaturityDate_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentMaturityDate_510" xlink:type="arc" order="10"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentInterestRateTerms" xlink:label="loc_us-gaapDebtInstrumentInterestRateTerms_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentInterestRateTerms_510" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentPeriodicPayment" xlink:label="loc_us-gaapDebtInstrumentPeriodicPayment_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentPeriodicPayment_510" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentFrequencyOfPeriodicPayment" xlink:label="loc_us-gaapDebtInstrumentFrequencyOfPeriodicPayment_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentFrequencyOfPeriodicPayment_510" xlink:type="arc" order="13"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentPaymentTerms" xlink:label="loc_us-gaapDebtInstrumentPaymentTerms_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentPaymentTerms_510" xlink:type="arc" order="14"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentCovenantDescription" xlink:label="loc_us-gaapDebtInstrumentCovenantDescription_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentCovenantDescription_510" xlink:type="arc" order="15"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_SubsequentDebtInstrumentCovenantDescription" xlink:label="loc_peixSubsequentDebtInstrumentCovenantDescription_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixSubsequentDebtInstrumentCovenantDescription_510" xlink:type="arc" order="16"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentDescription" xlink:label="loc_us-gaapDebtInstrumentDescription_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentDescription_510" xlink:type="arc" order="17"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCredit" xlink:label="loc_us-gaapLineOfCredit_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapLineOfCredit_510" xlink:type="arc" order="18"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_DebtDefaultLongtermDebtInterestRate" xlink:label="loc_peixDebtDefaultLongtermDebtInterestRate_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixDebtDefaultLongtermDebtInterestRate_510" xlink:type="arc" order="19"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentCollateral" xlink:label="loc_us-gaapDebtInstrumentCollateral_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentCollateral_510" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentMaturityDateDescription" xlink:label="loc_us-gaapDebtInstrumentMaturityDateDescription_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentMaturityDateDescription_510" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_DebtInstrumentRetiremntAmount" xlink:label="loc_peixDebtInstrumentRetiremntAmount_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixDebtInstrumentRetiremntAmount_510" xlink:type="arc" order="22"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentIncreaseDecreaseForPeriodNet" xlink:label="loc_us-gaapDebtInstrumentIncreaseDecreaseForPeriodNet_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentIncreaseDecreaseForPeriodNet_510" xlink:type="arc" order="23"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscount" xlink:label="loc_us-gaapDebtInstrumentUnamortizedDiscount_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentUnamortizedDiscount_510" xlink:type="arc" order="24"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaidInKindInterest" xlink:label="loc_us-gaapPaidInKindInterest_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapPaidInKindInterest_510" xlink:type="arc" order="25"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaapLongTermDebt_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapLongTermDebt_510" xlink:type="arc" order="26"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RepaymentsOfDebt" xlink:label="loc_us-gaapRepaymentsOfDebt_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapRepaymentsOfDebt_510" xlink:type="arc" order="27"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_DeferredFinancingFees" xlink:label="loc_peixDeferredFinancingFees_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixDeferredFinancingFees_510" xlink:type="arc" order="28"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt" xlink:label="loc_us-gaapGainsLossesOnExtinguishmentOfDebt_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapGainsLossesOnExtinguishmentOfDebt_510" xlink:type="arc" order="29"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_WorkingCapital" xlink:label="loc_peixWorkingCapital_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixWorkingCapital_510" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_DescriptionOfPrincipalAmount" xlink:label="loc_peixDescriptionOfPrincipalAmount_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixDescriptionOfPrincipalAmount_510" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SharesIssued" xlink:label="loc_us-gaapSharesIssued_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapSharesIssued_510" xlink:type="arc" order="32"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestPayableCurrentAndNoncurrent" xlink:label="loc_us-gaapInterestPayableCurrentAndNoncurrent_510"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapInterestPayableCurrentAndNoncurrent_510" xlink:type="arc" order="33"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Leases.Details" xlink:title="00000063 - Disclosure - LEASES. (Details)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CollateralAxis" xlink:label="loc_us-gaapCollateralAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapCollateralAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CollateralDomain" xlink:label="loc_us-gaapCollateralDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapCollateralAxis" xlink:to="loc_us-gaapCollateralDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CollateralDomain" xlink:label="loc_us-gaapCollateralDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapCollateralAxis" xlink:to="loc_us-gaapCollateralDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquipmentMember" xlink:label="loc_us-gaapEquipmentMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapCollateralDomain" xlink:to="loc_us-gaapEquipmentMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_LandRelatedMember" xlink:label="loc_peixLandRelatedMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapCollateralDomain" xlink:to="loc_peixLandRelatedMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent" xlink:label="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueCurrent_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueCurrent_30" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears" xlink:label="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueInTwoYears_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueInTwoYears_30" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears" xlink:label="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueInThreeYears_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueInThreeYears_30" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears" xlink:label="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueInFourYears_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueInFourYears_30" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears" xlink:label="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueInFiveYears_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueInFiveYears_30" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter" xlink:label="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueThereafter_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDueThereafter_30" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount" xlink:label="loc_us-gaapLesseeOperatingLeaseLiabilityUndiscountedExcessAmount_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapLesseeOperatingLeaseLiabilityUndiscountedExcessAmount_30" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDue" xlink:label="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDue_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingLeasesFutureMinimumPaymentsDue_30" xlink:type="arc" order="7"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Leases.DetailsNarrative" xlink:title="00000064 - Disclosure - LEASES. (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeAxis" xlink:label="loc_srtRangeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtRangeAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember" xlink:label="loc_srtRangeMember"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtRangeAxis" xlink:to="loc_srtRangeMember" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember" xlink:label="loc_srtRangeMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtRangeAxis" xlink:to="loc_srtRangeMember_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MinimumMember" xlink:label="loc_srtMinimumMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRangeMember" xlink:to="loc_srtMinimumMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MaximumMember" xlink:label="loc_srtMaximumMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRangeMember" xlink:to="loc_srtMaximumMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CollateralAxis" xlink:label="loc_us-gaapCollateralAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapCollateralAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CollateralDomain" xlink:label="loc_us-gaapCollateralDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapCollateralAxis" xlink:to="loc_us-gaapCollateralDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CollateralDomain" xlink:label="loc_us-gaapCollateralDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapCollateralAxis" xlink:to="loc_us-gaapCollateralDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquipmentMember" xlink:label="loc_us-gaapEquipmentMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapCollateralDomain" xlink:to="loc_us-gaapEquipmentMember_30" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_LandRelatedMember" xlink:label="loc_peixLandRelatedMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapCollateralDomain" xlink:to="loc_peixLandRelatedMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaapIncomeStatementLocationAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapIncomeStatementLocationAxis" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaapIncomeStatementLocationDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapIncomeStatementLocationAxis" xlink:to="loc_us-gaapIncomeStatementLocationDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaapIncomeStatementLocationDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapIncomeStatementLocationAxis" xlink:to="loc_us-gaapIncomeStatementLocationDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpensesMember" xlink:label="loc_us-gaapSellingGeneralAndAdministrativeExpensesMember_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeStatementLocationDomain" xlink:to="loc_us-gaapSellingGeneralAndAdministrativeExpensesMember_60" xlink:type="arc" order="61"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_RightOfAssetsAndOperatingLeaseLiability" xlink:label="loc_peixRightOfAssetsAndOperatingLeaseLiability_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixRightOfAssetsAndOperatingLeaseLiability_80" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1" xlink:label="loc_us-gaapOperatingLeaseWeightedAverageRemainingLeaseTerm1_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingLeaseWeightedAverageRemainingLeaseTerm1_80" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent" xlink:label="loc_us-gaapOperatingLeaseWeightedAverageDiscountRatePercent_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingLeaseWeightedAverageDiscountRatePercent_80" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseLiability" xlink:label="loc_us-gaapOperatingLeaseLiability_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingLeaseLiability_80" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseTermOfContract" xlink:label="loc_us-gaapLesseeOperatingLeaseTermOfContract_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapLesseeOperatingLeaseTermOfContract_80" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseCost" xlink:label="loc_us-gaapOperatingLeaseCost_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingLeaseCost_80" xlink:type="arc" order="5"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/PensionPlans.Details" xlink:title="00000065 - Disclosure - PENSION PLANS. (Details)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeAxis" xlink:label="loc_us-gaapRetirementPlanTypeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapRetirementPlanTypeAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain" xlink:label="loc_us-gaapRetirementPlanTypeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapRetirementPlanTypeAxis" xlink:to="loc_us-gaapRetirementPlanTypeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain" xlink:label="loc_us-gaapRetirementPlanTypeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapRetirementPlanTypeAxis" xlink:to="loc_us-gaapRetirementPlanTypeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PostemploymentRetirementBenefitsMember" xlink:label="loc_us-gaapPostemploymentRetirementBenefitsMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRetirementPlanTypeDomain" xlink:to="loc_us-gaapPostemploymentRetirementBenefitsMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlanAbstract" xlink:label="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlanAbstract_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlanAbstract_50" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanPensionPlanWithProjectedBenefitObligationInExcessOfPlanAssetsPlanAssets" xlink:label="loc_us-gaapDefinedBenefitPlanPensionPlanWithProjectedBenefitObligationInExcessOfPlanAssetsPlanAssets_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlanAbstract_50" xlink:to="loc_us-gaapDefinedBenefitPlanPensionPlanWithProjectedBenefitObligationInExcessOfPlanAssetsPlanAssets_50" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanActuarialGainLoss" xlink:label="loc_us-gaapDefinedBenefitPlanActuarialGainLoss_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlanAbstract_50" xlink:to="loc_us-gaapDefinedBenefitPlanActuarialGainLoss_50" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanPlanAssetsBenefitsPaid" xlink:label="loc_us-gaapDefinedBenefitPlanPlanAssetsBenefitsPaid_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlanAbstract_50" xlink:to="loc_us-gaapDefinedBenefitPlanPlanAssetsBenefitsPaid_50" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanContributionsByEmployer" xlink:label="loc_us-gaapDefinedBenefitPlanContributionsByEmployer_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlanAbstract_50" xlink:to="loc_us-gaapDefinedBenefitPlanContributionsByEmployer_50" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanPlanAssetsContributionsByPlanParticipant" xlink:label="loc_us-gaapDefinedBenefitPlanPlanAssetsContributionsByPlanParticipant_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlanAbstract_50" xlink:to="loc_us-gaapDefinedBenefitPlanPlanAssetsContributionsByPlanParticipant_50" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanBenefitObligation" xlink:label="loc_us-gaapDefinedBenefitPlanBenefitObligation_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlanAbstract_50" xlink:to="loc_us-gaapDefinedBenefitPlanBenefitObligation_50" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan" xlink:label="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlan_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlanAbstract_50" xlink:to="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlan_50" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeLossAfterTaxAbstract" xlink:label="loc_us-gaapDefinedBenefitPlanAccumulatedOtherComprehensiveIncomeLossAfterTaxAbstract_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanAccumulatedOtherComprehensiveIncomeLossAfterTaxAbstract_50" xlink:type="arc" order="9"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeOtherMinimumPensionOtherLiabilityAfterTax" xlink:label="loc_peixDefinedBenefitPlanAccumulatedOtherComprehensiveIncomeOtherMinimumPensionOtherLiabilityAfterTax_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanAccumulatedOtherComprehensiveIncomeLossAfterTaxAbstract_50" xlink:to="loc_peixDefinedBenefitPlanAccumulatedOtherComprehensiveIncomeOtherMinimumPensionOtherLiabilityAfterTax_50" xlink:type="arc" order="10"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax" xlink:label="loc_us-gaapDefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanAccumulatedOtherComprehensiveIncomeLossAfterTaxAbstract_50" xlink:to="loc_us-gaapDefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax_50" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract" xlink:label="loc_us-gaapDefinedBenefitPlanNetPeriodicBenefitCostAbstract_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanNetPeriodicBenefitCostAbstract_50" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanServiceCost" xlink:label="loc_us-gaapDefinedBenefitPlanServiceCost_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanServiceCost_50" xlink:type="arc" order="13"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanInterestCost" xlink:label="loc_us-gaapDefinedBenefitPlanInterestCost_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanInterestCost_50" xlink:type="arc" order="14"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets" xlink:label="loc_us-gaapDefinedBenefitPlanExpectedReturnOnPlanAssets_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanExpectedReturnOnPlanAssets_50" xlink:type="arc" order="15"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost" xlink:label="loc_us-gaapDefinedBenefitPlanNetPeriodicBenefitCost_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanNetPeriodicBenefitCost_50" xlink:type="arc" order="16"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax" xlink:label="loc_us-gaapOtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_50" xlink:type="arc" order="17"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingNetPeriodicBenefitCostAbstract" xlink:label="loc_us-gaapDefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingNetPeriodicBenefitCostAbstract_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingNetPeriodicBenefitCostAbstract_50" xlink:type="arc" order="18"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate" xlink:label="loc_us-gaapDefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate_50" xlink:type="arc" order="19"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets" xlink:label="loc_us-gaapDefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets_50" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease" xlink:label="loc_us-gaapDefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease_50" xlink:type="arc" order="21"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/PensionPlans.Details1" xlink:title="00000066 - Disclosure - PENSION PLANS. (Details 1)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameAxis" xlink:label="loc_us-gaapRetirementPlanNameAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapRetirementPlanNameAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameDomain" xlink:label="loc_us-gaapRetirementPlanNameDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapRetirementPlanNameAxis" xlink:to="loc_us-gaapRetirementPlanNameDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameDomain" xlink:label="loc_us-gaapRetirementPlanNameDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapRetirementPlanNameAxis" xlink:to="loc_us-gaapRetirementPlanNameDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_RetirementPlanMember" xlink:label="loc_peixRetirementPlanMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRetirementPlanNameDomain" xlink:to="loc_peixRetirementPlanMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths" xlink:label="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths_20" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo" xlink:label="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo_20" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree" xlink:label="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree_20" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour" xlink:label="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour_20" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive" xlink:label="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive_20" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter" xlink:label="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter_20" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_TotalExpectedBenefitPayments" xlink:label="loc_peixTotalExpectedBenefitPayments_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixTotalExpectedBenefitPayments_20" xlink:type="arc" order="6"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/PensionPlans.Details2" xlink:title="00000067 - Disclosure - PENSION PLANS. (Details 2)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameAxis" xlink:label="loc_us-gaapRetirementPlanNameAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapRetirementPlanNameAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameDomain" xlink:label="loc_us-gaapRetirementPlanNameDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapRetirementPlanNameAxis" xlink:to="loc_us-gaapRetirementPlanNameDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameDomain" xlink:label="loc_us-gaapRetirementPlanNameDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapRetirementPlanNameAxis" xlink:to="loc_us-gaapRetirementPlanNameDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_PostretirementPlanMember" xlink:label="loc_peixPostretirementPlanMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRetirementPlanNameDomain" xlink:to="loc_peixPostretirementPlanMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlanAbstract" xlink:label="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlanAbstract_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlanAbstract_30" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedBenefitObligation" xlink:label="loc_us-gaapDefinedBenefitPlanAccumulatedBenefitObligation_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlanAbstract_30" xlink:to="loc_us-gaapDefinedBenefitPlanAccumulatedBenefitObligation_30" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAggregateFairValueOfPlanAssets" xlink:label="loc_us-gaapDefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAggregateFairValueOfPlanAssets_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlanAbstract_30" xlink:to="loc_us-gaapDefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAggregateFairValueOfPlanAssets_30" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan" xlink:label="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlan_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlanAbstract_30" xlink:to="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlan_30" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeLossAfterTaxAbstract" xlink:label="loc_us-gaapDefinedBenefitPlanAccumulatedOtherComprehensiveIncomeLossAfterTaxAbstract_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanAccumulatedOtherComprehensiveIncomeLossAfterTaxAbstract_30" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeOtherMinimumPensionLiabilityAfterTax" xlink:label="loc_peixDefinedBenefitPlanAccumulatedOtherComprehensiveIncomeOtherMinimumPensionLiabilityAfterTax_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanAccumulatedOtherComprehensiveIncomeLossAfterTaxAbstract_30" xlink:to="loc_peixDefinedBenefitPlanAccumulatedOtherComprehensiveIncomeOtherMinimumPensionLiabilityAfterTax_30" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeOtherMinimumPensionOtherLiabilityAfterTax" xlink:label="loc_peixDefinedBenefitPlanAccumulatedOtherComprehensiveIncomeOtherMinimumPensionOtherLiabilityAfterTax_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanAccumulatedOtherComprehensiveIncomeLossAfterTaxAbstract_30" xlink:to="loc_peixDefinedBenefitPlanAccumulatedOtherComprehensiveIncomeOtherMinimumPensionOtherLiabilityAfterTax_30" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax" xlink:label="loc_us-gaapDefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanAccumulatedOtherComprehensiveIncomeLossAfterTaxAbstract_30" xlink:to="loc_us-gaapDefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax_30" xlink:type="arc" order="7"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/PensionPlans.Details3" xlink:title="00000068 - Disclosure - PENSION PLANS. (Details 3)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameAxis" xlink:label="loc_us-gaapRetirementPlanNameAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapRetirementPlanNameAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameDomain" xlink:label="loc_us-gaapRetirementPlanNameDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapRetirementPlanNameAxis" xlink:to="loc_us-gaapRetirementPlanNameDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameDomain" xlink:label="loc_us-gaapRetirementPlanNameDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapRetirementPlanNameAxis" xlink:to="loc_us-gaapRetirementPlanNameDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_PostretirementPlanMember" xlink:label="loc_peixPostretirementPlanMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRetirementPlanNameDomain" xlink:to="loc_peixPostretirementPlanMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlanAbstract" xlink:label="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlanAbstract_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlanAbstract_30" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanContributionsByEmployer" xlink:label="loc_us-gaapDefinedBenefitPlanContributionsByEmployer_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlanAbstract_30" xlink:to="loc_us-gaapDefinedBenefitPlanContributionsByEmployer_30" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanPlanAssetsContributionsByPlanParticipant" xlink:label="loc_us-gaapDefinedBenefitPlanPlanAssetsContributionsByPlanParticipant_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlanAbstract_30" xlink:to="loc_us-gaapDefinedBenefitPlanPlanAssetsContributionsByPlanParticipant_30" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanPlanAssetsBenefitsPaid" xlink:label="loc_us-gaapDefinedBenefitPlanPlanAssetsBenefitsPaid_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanFundedStatusOfPlanAbstract_30" xlink:to="loc_us-gaapDefinedBenefitPlanPlanAssetsBenefitsPaid_30" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract" xlink:label="loc_us-gaapDefinedBenefitPlanNetPeriodicBenefitCostAbstract_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanNetPeriodicBenefitCostAbstract_30" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanServiceCost" xlink:label="loc_us-gaapDefinedBenefitPlanServiceCost_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanNetPeriodicBenefitCostAbstract_30" xlink:to="loc_us-gaapDefinedBenefitPlanServiceCost_30" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanInterestCost" xlink:label="loc_us-gaapDefinedBenefitPlanInterestCost_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanNetPeriodicBenefitCostAbstract_30" xlink:to="loc_us-gaapDefinedBenefitPlanInterestCost_30" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets" xlink:label="loc_us-gaapDefinedBenefitPlanExpectedReturnOnPlanAssets_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanNetPeriodicBenefitCostAbstract_30" xlink:to="loc_us-gaapDefinedBenefitPlanExpectedReturnOnPlanAssets_30" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost" xlink:label="loc_us-gaapDefinedBenefitPlanNetPeriodicBenefitCost_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanNetPeriodicBenefitCostAbstract_30" xlink:to="loc_us-gaapDefinedBenefitPlanNetPeriodicBenefitCost_30" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax" xlink:label="loc_us-gaapOtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDefinedBenefitPlanNetPeriodicBenefitCostAbstract_30" xlink:to="loc_us-gaapOtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_30" xlink:type="arc" order="9"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate" xlink:label="loc_us-gaapDefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate_30" xlink:type="arc" order="10"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/PensionPlans.Details4" xlink:title="00000069 - Disclosure - PENSION PLANS. (Details 4)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameAxis" xlink:label="loc_us-gaapRetirementPlanNameAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapRetirementPlanNameAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameDomain" xlink:label="loc_us-gaapRetirementPlanNameDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapRetirementPlanNameAxis" xlink:to="loc_us-gaapRetirementPlanNameDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameDomain" xlink:label="loc_us-gaapRetirementPlanNameDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapRetirementPlanNameAxis" xlink:to="loc_us-gaapRetirementPlanNameDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_PostretirementPlanMember" xlink:label="loc_peixPostretirementPlanMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRetirementPlanNameDomain" xlink:to="loc_peixPostretirementPlanMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths" xlink:label="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths_20" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo" xlink:label="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo_20" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree" xlink:label="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree_20" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour" xlink:label="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour_20" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive" xlink:label="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive_20" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter" xlink:label="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter_20" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_TotalExpectedBenefitPayments" xlink:label="loc_peixTotalExpectedBenefitPayments_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixTotalExpectedBenefitPayments_20" xlink:type="arc" order="6"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/PensionPlans.DetailsNarrative" xlink:title="00000070 - Disclosure - PENSION PLANS. (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameAxis" xlink:label="loc_us-gaapRetirementPlanNameAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapRetirementPlanNameAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameDomain" xlink:label="loc_us-gaapRetirementPlanNameDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapRetirementPlanNameAxis" xlink:to="loc_us-gaapRetirementPlanNameDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameDomain" xlink:label="loc_us-gaapRetirementPlanNameDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapRetirementPlanNameAxis" xlink:to="loc_us-gaapRetirementPlanNameDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_RetirementPlanMember" xlink:label="loc_peixRetirementPlanMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRetirementPlanNameDomain" xlink:to="loc_peixRetirementPlanMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_StatementScenarioAxis" xlink:label="loc_srtStatementScenarioAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtStatementScenarioAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ScenarioUnspecifiedDomain" xlink:label="loc_srtScenarioUnspecifiedDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtStatementScenarioAxis" xlink:to="loc_srtScenarioUnspecifiedDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ScenarioUnspecifiedDomain" xlink:label="loc_srtScenarioUnspecifiedDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtStatementScenarioAxis" xlink:to="loc_srtScenarioUnspecifiedDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ScenarioForecastMember" xlink:label="loc_srtScenarioForecastMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtScenarioUnspecifiedDomain" xlink:to="loc_srtScenarioForecastMember_0" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear" xlink:label="loc_us-gaapDefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear_40" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost" xlink:label="loc_us-gaapDefinedBenefitPlanNetPeriodicBenefitCost_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanNetPeriodicBenefitCost_40" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths" xlink:label="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths_40" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_PercentageOfPremedicarePostretirementMedicalBenefits" xlink:label="loc_peixPercentageOfPremedicarePostretirementMedicalBenefits_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixPercentageOfPremedicarePostretirementMedicalBenefits_40" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_PerCapitaCostOfCoveredBenefits" xlink:label="loc_peixPerCapitaCostOfCoveredBenefits_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixPerCapitaCostOfCoveredBenefits_40" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_DiscriptionOfAdjustingRateForAssumedHealthCare" xlink:label="loc_peixDiscriptionOfAdjustingRateForAssumedHealthCare_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixDiscriptionOfAdjustingRateForAssumedHealthCare_40" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MultiemployerPlansPlanBenefitsDescription" xlink:label="loc_us-gaapMultiemployerPlansPlanBenefitsDescription_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapMultiemployerPlansPlanBenefitsDescription_40" xlink:type="arc" order="6"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/IncomeTaxes.Details" xlink:title="00000071 - Disclosure - INCOME TAXES. (Details)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/IncomeTaxes.Details1" xlink:title="00000072 - Disclosure - INCOME TAXES. (Details 1)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/IncomeTaxes.Details2" xlink:title="00000073 - Disclosure - INCOME TAXES. (Details 2)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/IncomeTaxes.Details3" xlink:title="00000074 - Disclosure - INCOME TAXES. (Details 3)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxAuthorityAxis" xlink:label="loc_us-gaapIncomeTaxAuthorityAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapIncomeTaxAuthorityAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaapIncomeTaxAuthorityDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapIncomeTaxAuthorityAxis" xlink:to="loc_us-gaapIncomeTaxAuthorityDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaapIncomeTaxAuthorityDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapIncomeTaxAuthorityAxis" xlink:to="loc_us-gaapIncomeTaxAuthorityDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DomesticCountryMember" xlink:label="loc_us-gaapDomesticCountryMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_us-gaapDomesticCountryMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StateAndLocalJurisdictionMember" xlink:label="loc_us-gaapStateAndLocalJurisdictionMember_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_us-gaapStateAndLocalJurisdictionMember_50" xlink:type="arc" order="51"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TaxPeriodAxis" xlink:label="loc_us-gaapTaxPeriodAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapTaxPeriodAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TaxPeriodDomain" xlink:label="loc_us-gaapTaxPeriodDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapTaxPeriodAxis" xlink:to="loc_us-gaapTaxPeriodDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TaxPeriodDomain" xlink:label="loc_us-gaapTaxPeriodDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapTaxPeriodAxis" xlink:to="loc_us-gaapTaxPeriodDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_Period1Member" xlink:label="loc_peixPeriod1Member_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapTaxPeriodDomain" xlink:to="loc_peixPeriod1Member_0" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_Period2Member" xlink:label="loc_peixPeriod2Member_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapTaxPeriodDomain" xlink:to="loc_peixPeriod2Member_10" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_Period3Member" xlink:label="loc_peixPeriod3Member_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapTaxPeriodDomain" xlink:to="loc_peixPeriod3Member_20" xlink:type="arc" order="22"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_Period4Member" xlink:label="loc_peixPeriod4Member_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapTaxPeriodDomain" xlink:to="loc_peixPeriod4Member_30" xlink:type="arc" order="32"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_NonExpiringNonOperatingLosses" xlink:label="loc_peixNonExpiringNonOperatingLosses_110"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixNonExpiringNonOperatingLosses_110" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLossCarryforwards" xlink:label="loc_us-gaapOperatingLossCarryforwards_110"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingLossCarryforwards_110" xlink:type="arc" order="1"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/IncomeTaxes.Details4" xlink:title="00000075 - Disclosure - INCOME TAXES. (Details 4)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxAuthorityAxis" xlink:label="loc_us-gaapIncomeTaxAuthorityAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapIncomeTaxAuthorityAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaapIncomeTaxAuthorityDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapIncomeTaxAuthorityAxis" xlink:to="loc_us-gaapIncomeTaxAuthorityDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaapIncomeTaxAuthorityDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapIncomeTaxAuthorityAxis" xlink:to="loc_us-gaapIncomeTaxAuthorityDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DomesticCountryMember" xlink:label="loc_us-gaapDomesticCountryMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_us-gaapDomesticCountryMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StateAndLocalJurisdictionMember" xlink:label="loc_us-gaapStateAndLocalJurisdictionMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_us-gaapStateAndLocalJurisdictionMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TaxPeriodAxis" xlink:label="loc_us-gaapTaxPeriodAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapTaxPeriodAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TaxPeriodDomain" xlink:label="loc_us-gaapTaxPeriodDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapTaxPeriodAxis" xlink:to="loc_us-gaapTaxPeriodDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TaxPeriodDomain" xlink:label="loc_us-gaapTaxPeriodDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapTaxPeriodAxis" xlink:to="loc_us-gaapTaxPeriodDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsReceivableCurrent" xlink:label="loc_us-gaapOperatingLeasesFutureMinimumPaymentsReceivableCurrent_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingLeasesFutureMinimumPaymentsReceivableCurrent_30" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsReceivableInTwoYears" xlink:label="loc_us-gaapOperatingLeasesFutureMinimumPaymentsReceivableInTwoYears_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingLeasesFutureMinimumPaymentsReceivableInTwoYears_30" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsReceivableInThreeYears" xlink:label="loc_us-gaapOperatingLeasesFutureMinimumPaymentsReceivableInThreeYears_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingLeasesFutureMinimumPaymentsReceivableInThreeYears_30" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsReceivableInFourYears" xlink:label="loc_us-gaapOperatingLeasesFutureMinimumPaymentsReceivableInFourYears_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingLeasesFutureMinimumPaymentsReceivableInFourYears_30" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsReceivableInFiveYears" xlink:label="loc_us-gaapOperatingLeasesFutureMinimumPaymentsReceivableInFiveYears_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingLeasesFutureMinimumPaymentsReceivableInFiveYears_30" xlink:type="arc" order="4"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/IncomeTaxes.Details5" xlink:title="00000076 - Disclosure - INCOME TAXES. (Details 5)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxAuthorityAxis" xlink:label="loc_us-gaapIncomeTaxAuthorityAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapIncomeTaxAuthorityAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaapIncomeTaxAuthorityDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapIncomeTaxAuthorityAxis" xlink:to="loc_us-gaapIncomeTaxAuthorityDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaapIncomeTaxAuthorityDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapIncomeTaxAuthorityAxis" xlink:to="loc_us-gaapIncomeTaxAuthorityDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_USTreasuryAndGovernmentMember" xlink:label="loc_us-gaapUSTreasuryAndGovernmentMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_us-gaapUSTreasuryAndGovernmentMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_ArizonaMember" xlink:label="loc_peixArizonaMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_peixArizonaMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_CaliforniaMember" xlink:label="loc_peixCaliforniaMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_peixCaliforniaMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_ColoradoMember" xlink:label="loc_peixColoradoMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_peixColoradoMember_30" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_IdahoMember" xlink:label="loc_peixIdahoMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_peixIdahoMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_IllinoisMember" xlink:label="loc_peixIllinoisMember_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_peixIllinoisMember_50" xlink:type="arc" order="51"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_IndianaMember" xlink:label="loc_peixIndianaMember_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_peixIndianaMember_60" xlink:type="arc" order="61"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_IowaMember" xlink:label="loc_peixIowaMember_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_peixIowaMember_70" xlink:type="arc" order="71"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_KansasMember" xlink:label="loc_peixKansasMember_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_peixKansasMember_80" xlink:type="arc" order="81"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_MinnesotaMember" xlink:label="loc_peixMinnesotaMember_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_peixMinnesotaMember_90" xlink:type="arc" order="91"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_MissouriMember" xlink:label="loc_peixMissouriMember_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_peixMissouriMember_100" xlink:type="arc" order="101"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_NebraskaMember" xlink:label="loc_peixNebraskaMember_110"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_peixNebraskaMember_110" xlink:type="arc" order="111"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_OklahomaMember" xlink:label="loc_peixOklahomaMember_120"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_peixOklahomaMember_120" xlink:type="arc" order="121"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_OregonMember" xlink:label="loc_peixOregonMember_130"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_peixOregonMember_130" xlink:type="arc" order="131"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_TexasMember" xlink:label="loc_peixTexasMember_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_peixTexasMember_140" xlink:type="arc" order="141"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_TaxYearsStillOpenToAudit" xlink:label="loc_peixTaxYearsStillOpenToAudit_160"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixTaxYearsStillOpenToAudit_160" xlink:type="arc" order="0"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/IncomeTaxes.DetailsNarrative" xlink:title="00000077 - Disclosure - INCOME TAXES. (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxAuthorityAxis" xlink:label="loc_us-gaapIncomeTaxAuthorityAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapIncomeTaxAuthorityAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaapIncomeTaxAuthorityDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapIncomeTaxAuthorityAxis" xlink:to="loc_us-gaapIncomeTaxAuthorityDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaapIncomeTaxAuthorityDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapIncomeTaxAuthorityAxis" xlink:to="loc_us-gaapIncomeTaxAuthorityDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DomesticCountryMember" xlink:label="loc_us-gaapDomesticCountryMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_us-gaapDomesticCountryMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StateAndLocalJurisdictionMember" xlink:label="loc_us-gaapStateAndLocalJurisdictionMember_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_us-gaapStateAndLocalJurisdictionMember_50" xlink:type="arc" order="51"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaapStatementBusinessSegmentsAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapStatementBusinessSegmentsAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaapSegmentDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapStatementBusinessSegmentsAxis" xlink:to="loc_us-gaapSegmentDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaapSegmentDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementBusinessSegmentsAxis" xlink:to="loc_us-gaapSegmentDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CorporateMember" xlink:label="loc_us-gaapCorporateMember_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSegmentDomain" xlink:to="loc_us-gaapCorporateMember_80" xlink:type="arc" order="81"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_RemainingNetOperatingLossCarryforwards" xlink:label="loc_peixRemainingNetOperatingLossCarryforwards_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixRemainingNetOperatingLossCarryforwards_100" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance" xlink:label="loc_us-gaapDeferredTaxAssetsValuationAllowance_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDeferredTaxAssetsValuationAllowance_100" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount" xlink:label="loc_us-gaapValuationAllowanceDeferredTaxAssetChangeInAmount_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapValuationAllowanceDeferredTaxAssetChangeInAmount_100" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxExaminationDescription" xlink:label="loc_us-gaapIncomeTaxExaminationDescription_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapIncomeTaxExaminationDescription_100" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_AccruedTaxUncertainties" xlink:label="loc_peixAccruedTaxUncertainties_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixAccruedTaxUncertainties_100" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaapIncomeTaxExpenseBenefit_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapIncomeTaxExpenseBenefit_100" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance" xlink:label="loc_us-gaapIncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapIncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance_100" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_DecreasedGrossDeferredAssets" xlink:label="loc_peixDecreasedGrossDeferredAssets_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixDecreasedGrossDeferredAssets_100" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_IncreaseDeferredAssets" xlink:label="loc_peixIncreaseDeferredAssets_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixIncreaseDeferredAssets_100" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsNet" xlink:label="loc_us-gaapDeferredTaxAssetsNet_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDeferredTaxAssetsNet_100" xlink:type="arc" order="9"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_RevisedEffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" xlink:label="loc_peixRevisedEffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixRevisedEffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_100" xlink:type="arc" order="10"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential" xlink:label="loc_us-gaapEffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapEffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_100" xlink:type="arc" order="11"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/PreferredStock.DetailsNarrative" xlink:title="00000078 - Disclosure - PREFERRED STOCK. (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaapStatementClassOfStockAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapStatementClassOfStockAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaapClassOfStockDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapStatementClassOfStockAxis" xlink:to="loc_us-gaapClassOfStockDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaapClassOfStockDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementClassOfStockAxis" xlink:to="loc_us-gaapClassOfStockDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SeriesAPreferredStockMember" xlink:label="loc_us-gaapSeriesAPreferredStockMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapClassOfStockDomain" xlink:to="loc_us-gaapSeriesAPreferredStockMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SeriesBPreferredStockMember" xlink:label="loc_us-gaapSeriesBPreferredStockMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapClassOfStockDomain" xlink:to="loc_us-gaapSeriesBPreferredStockMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_PreferredStockUndesignatedSharesAuthorized" xlink:label="loc_peixPreferredStockUndesignatedSharesAuthorized_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixPreferredStockUndesignatedSharesAuthorized_100" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PreferredStockSharesAuthorized" xlink:label="loc_us-gaapPreferredStockSharesAuthorized_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapPreferredStockSharesAuthorized_100" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PreferredStockSharesOutstanding" xlink:label="loc_us-gaapPreferredStockSharesOutstanding_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapPreferredStockSharesOutstanding_100" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_CumulativeDividendsPayableInCash" xlink:label="loc_peixCumulativeDividendsPayableInCash_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixCumulativeDividendsPayableInCash_100" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_PreferredStockConvertibleIntoCommonSharesCommonShares" xlink:label="loc_peixPreferredStockConvertibleIntoCommonSharesCommonShares_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixPreferredStockConvertibleIntoCommonSharesCommonShares_100" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TemporaryEquityLiquidationPreferencePerShare" xlink:label="loc_us-gaapTemporaryEquityLiquidationPreferencePerShare_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapTemporaryEquityLiquidationPreferencePerShare_100" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DividendsPreferredStockCash" xlink:label="loc_us-gaapDividendsPreferredStockCash_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDividendsPreferredStockCash_100" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_AccruedPreferredStockDividendsNotYetPaidInCash" xlink:label="loc_peixAccruedPreferredStockDividendsNotYetPaidInCash_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixAccruedPreferredStockDividendsNotYetPaidInCash_100" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PreferredStockDividendRatePercentage" xlink:label="loc_us-gaapPreferredStockDividendRatePercentage_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapPreferredStockDividendRatePercentage_100" xlink:type="arc" order="8"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/CommonStockAndWarrants.Details" xlink:title="00000079 - Disclosure - COMMON STOCK AND WARRANTS. (Details)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/CommonStockAndWarrants.DetailsNarrative" xlink:title="00000080 - Disclosure - COMMON STOCK AND WARRANTS. (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaapStatementClassOfStockAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapStatementClassOfStockAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaapClassOfStockDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapStatementClassOfStockAxis" xlink:to="loc_us-gaapClassOfStockDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaapClassOfStockDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementClassOfStockAxis" xlink:to="loc_us-gaapClassOfStockDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NonvotingCommonStockMember" xlink:label="loc_us-gaapNonvotingCommonStockMember_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapClassOfStockDomain" xlink:to="loc_us-gaapNonvotingCommonStockMember_50" xlink:type="arc" order="51"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_CommonStockAndWarrantsTextualAbstract" xlink:label="loc_peixCommonStockAndWarrantsTextualAbstract_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixCommonStockAndWarrantsTextualAbstract_70" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans" xlink:label="loc_us-gaapStockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_peixCommonStockAndWarrantsTextualAbstract_70" xlink:to="loc_us-gaapStockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_70" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WarrantExercisePriceIncrease" xlink:label="loc_us-gaapWarrantExercisePriceIncrease_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_peixCommonStockAndWarrantsTextualAbstract_70" xlink:to="loc_us-gaapWarrantExercisePriceIncrease_70" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAdjustmentOfWarrants" xlink:label="loc_us-gaapFairValueAdjustmentOfWarrants_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_peixCommonStockAndWarrantsTextualAbstract_70" xlink:to="loc_us-gaapFairValueAdjustmentOfWarrants_70" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_StockIssuedDuringPeriodSharesNewIssues3" xlink:label="loc_peixStockIssuedDuringPeriodSharesNewIssues3_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_peixCommonStockAndWarrantsTextualAbstract_70" xlink:to="loc_peixStockIssuedDuringPeriodSharesNewIssues3_70" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_StockIssuedDuringPeriodValueNewIssues3" xlink:label="loc_peixStockIssuedDuringPeriodValueNewIssues3_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_peixCommonStockAndWarrantsTextualAbstract_70" xlink:to="loc_peixStockIssuedDuringPeriodValueNewIssues3_70" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsForBrokerageFees" xlink:label="loc_us-gaapPaymentsForBrokerageFees_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_peixCommonStockAndWarrantsTextualAbstract_70" xlink:to="loc_us-gaapPaymentsForBrokerageFees_70" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentMaturityDate" xlink:label="loc_us-gaapDebtInstrumentMaturityDate_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_peixCommonStockAndWarrantsTextualAbstract_70" xlink:to="loc_us-gaapDebtInstrumentMaturityDate_70" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_IssuedNonvotingCommonSharesExercisable" xlink:label="loc_peixIssuedNonvotingCommonSharesExercisable_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_peixCommonStockAndWarrantsTextualAbstract_70" xlink:to="loc_peixIssuedNonvotingCommonSharesExercisable_70" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_AntidilutionExercisePricePerShare" xlink:label="loc_peixAntidilutionExercisePricePerShare_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_peixCommonStockAndWarrantsTextualAbstract_70" xlink:to="loc_peixAntidilutionExercisePricePerShare_70" xlink:type="arc" order="9"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Stock-basedCompensation.Details" xlink:title="00000081 - Disclosure - STOCK-BASED COMPENSATION. (Details)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Stock-basedCompensation.Details1" xlink:title="00000082 - Disclosure - STOCK-BASED COMPENSATION. (Details 1)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:label="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:label="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:to="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:label="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:to="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_StockOptionAwardTwoMember" xlink:label="loc_peixStockOptionAwardTwoMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="loc_peixStockOptionAwardTwoMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_StockOptionAwardOneMember" xlink:label="loc_peixStockOptionAwardOneMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="loc_peixStockOptionAwardOneMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfOutstandingOptions" xlink:label="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfOutstandingOptions_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfOutstandingOptions_50" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeOutstandingOptionsWeightedAverageRemainingContractualTerm2" xlink:label="loc_us-gaapSharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeOutstandingOptionsWeightedAverageRemainingContractualTerm2_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapSharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeOutstandingOptionsWeightedAverageRemainingContractualTerm2_50" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeOutstandingOptionsWeightedAverageExercisePriceBeginningBalance1" xlink:label="loc_us-gaapSharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeOutstandingOptionsWeightedAverageExercisePriceBeginningBalance1_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapSharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeOutstandingOptionsWeightedAverageExercisePriceBeginningBalance1_50" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfExercisableOption" xlink:label="loc_peixShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfExercisableOption_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfExercisableOption_50" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_SharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeExercisableOptionWeightedAverageExercisePrice1" xlink:label="loc_peixSharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeExercisableOptionWeightedAverageExercisePrice1_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixSharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeExercisableOptionWeightedAverageExercisePrice1_50" xlink:type="arc" order="4"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Stock-basedCompensation.Details2" xlink:title="00000083 - Disclosure - STOCK-BASED COMPENSATION. (Details 2)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Stock-basedCompensation.Details3" xlink:title="00000084 - Disclosure - STOCK-BASED COMPENSATION. (Details 3)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsByTypeOfDeferredCompensationAxis" xlink:label="loc_us-gaapDeferredCompensationArrangementWithIndividualShareBasedPaymentsByTypeOfDeferredCompensationAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapDeferredCompensationArrangementWithIndividualShareBasedPaymentsByTypeOfDeferredCompensationAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityBasedArrangementsIndividualContractsTypeOfDeferredCompensationDomain" xlink:label="loc_us-gaapEquityBasedArrangementsIndividualContractsTypeOfDeferredCompensationDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapDeferredCompensationArrangementWithIndividualShareBasedPaymentsByTypeOfDeferredCompensationAxis" xlink:to="loc_us-gaapEquityBasedArrangementsIndividualContractsTypeOfDeferredCompensationDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityBasedArrangementsIndividualContractsTypeOfDeferredCompensationDomain" xlink:label="loc_us-gaapEquityBasedArrangementsIndividualContractsTypeOfDeferredCompensationDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapDeferredCompensationArrangementWithIndividualShareBasedPaymentsByTypeOfDeferredCompensationAxis" xlink:to="loc_us-gaapEquityBasedArrangementsIndividualContractsTypeOfDeferredCompensationDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_EmployeesMember" xlink:label="loc_peixEmployeesMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityBasedArrangementsIndividualContractsTypeOfDeferredCompensationDomain" xlink:to="loc_peixEmployeesMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_NonEmployeesMember" xlink:label="loc_peixNonEmployeesMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityBasedArrangementsIndividualContractsTypeOfDeferredCompensationDomain" xlink:to="loc_peixNonEmployeesMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaapShareBasedCompensation_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensation_70" xlink:type="arc" order="0"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/Stock-basedCompensation.DetailsNarrative" xlink:title="00000085 - Disclosure - STOCK-BASED COMPENSATION. (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PlanNameAxis" xlink:label="loc_us-gaapPlanNameAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapPlanNameAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaapPlanNameDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapPlanNameAxis" xlink:to="loc_us-gaapPlanNameDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PlanNameDomain" xlink:label="loc_us-gaapPlanNameDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapPlanNameAxis" xlink:to="loc_us-gaapPlanNameDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_Plan2006Member" xlink:label="loc_peixPlan2006Member_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPlanNameDomain" xlink:to="loc_peixPlan2006Member_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_Plan2016Member" xlink:label="loc_peixPlan2016Member_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPlanNameDomain" xlink:to="loc_peixPlan2016Member_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaapAwardTypeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapAwardTypeAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapAwardTypeAxis" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapAwardTypeAxis" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockOptionMember" xlink:label="loc_us-gaapStockOptionMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_us-gaapStockOptionMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_110"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_110" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue_110"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue_110" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1" xlink:label="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1_110"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1_110" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:label="loc_us-gaapEmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_110"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapEmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_110" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions" xlink:label="loc_us-gaapEmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions_110"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapEmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions_110" xlink:type="arc" order="4"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/CommitmentsAndContingencies.DetailsNarrative" xlink:title="00000086 - Disclosure - COMMITMENTS AND CONTINGENCIES. (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SupplyCommitmentAxis" xlink:label="loc_us-gaapSupplyCommitmentAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapSupplyCommitmentAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SupplyCommitmentArrangementMember" xlink:label="loc_us-gaapSupplyCommitmentArrangementMember"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapSupplyCommitmentAxis" xlink:to="loc_us-gaapSupplyCommitmentArrangementMember" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SupplyCommitmentArrangementMember" xlink:label="loc_us-gaapSupplyCommitmentArrangementMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapSupplyCommitmentAxis" xlink:to="loc_us-gaapSupplyCommitmentArrangementMember_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_CoproductsSalesContractsMember" xlink:label="loc_peixCoproductsSalesContractsMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSupplyCommitmentArrangementMember" xlink:to="loc_peixCoproductsSalesContractsMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_EthanolSalesContractsMember" xlink:label="loc_peixEthanolSalesContractsMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSupplyCommitmentArrangementMember" xlink:to="loc_peixEthanolSalesContractsMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PurchaseCommitmentExcludingLongtermCommitmentAxis" xlink:label="loc_us-gaapPurchaseCommitmentExcludingLongtermCommitmentAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapPurchaseCommitmentExcludingLongtermCommitmentAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PurchaseCommitmentExcludingLongtermCommitmentDomain" xlink:label="loc_us-gaapPurchaseCommitmentExcludingLongtermCommitmentDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapPurchaseCommitmentExcludingLongtermCommitmentAxis" xlink:to="loc_us-gaapPurchaseCommitmentExcludingLongtermCommitmentDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PurchaseCommitmentExcludingLongtermCommitmentDomain" xlink:label="loc_us-gaapPurchaseCommitmentExcludingLongtermCommitmentDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapPurchaseCommitmentExcludingLongtermCommitmentAxis" xlink:to="loc_us-gaapPurchaseCommitmentExcludingLongtermCommitmentDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_EthanolPurchaseContractsMember" xlink:label="loc_peixEthanolPurchaseContractsMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPurchaseCommitmentExcludingLongtermCommitmentDomain" xlink:to="loc_peixEthanolPurchaseContractsMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PurchaseCommitmentMember" xlink:label="loc_us-gaapPurchaseCommitmentMember_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPurchaseCommitmentExcludingLongtermCommitmentDomain" xlink:to="loc_us-gaapPurchaseCommitmentMember_140" xlink:type="arc" order="141"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis" xlink:label="loc_us-gaapRelatedPartyTransactionsByRelatedPartyAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapRelatedPartyTransactionsByRelatedPartyAxis" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaapRelatedPartyDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapRelatedPartyTransactionsByRelatedPartyAxis" xlink:to="loc_us-gaapRelatedPartyDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RelatedPartyDomain" xlink:label="loc_us-gaapRelatedPartyDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapRelatedPartyTransactionsByRelatedPartyAxis" xlink:to="loc_us-gaapRelatedPartyDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_SuppliersMember" xlink:label="loc_peixSuppliersMember_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRelatedPartyDomain" xlink:to="loc_peixSuppliersMember_50" xlink:type="arc" order="52"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfArrangementAxis" xlink:label="loc_us-gaapTypeOfArrangementAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapTypeOfArrangementAxis" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="loc_us-gaapArrangementsAndNonarrangementTransactionsMember"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapTypeOfArrangementAxis" xlink:to="loc_us-gaapArrangementsAndNonarrangementTransactionsMember" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ArrangementsAndNonarrangementTransactionsMember" xlink:label="loc_us-gaapArrangementsAndNonarrangementTransactionsMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapTypeOfArrangementAxis" xlink:to="loc_us-gaapArrangementsAndNonarrangementTransactionsMember_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_PropertyTaxAssessmentMember" xlink:label="loc_peixPropertyTaxAssessmentMember_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapArrangementsAndNonarrangementTransactionsMember" xlink:to="loc_peixPropertyTaxAssessmentMember_70" xlink:type="arc" order="71"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SignificantSupplyCommitmentDescription" xlink:label="loc_us-gaapSignificantSupplyCommitmentDescription_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapSignificantSupplyCommitmentDescription_170" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SignificantSupplyCommitmentRemainingMinimumAmountCommitted" xlink:label="loc_us-gaapSignificantSupplyCommitmentRemainingMinimumAmountCommitted_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapSignificantSupplyCommitmentRemainingMinimumAmountCommitted_170" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_IndexedPricePurchaseContracts" xlink:label="loc_peixIndexedPricePurchaseContracts_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixIndexedPricePurchaseContracts_170" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PurchaseCommitmentRemainingMinimumAmountCommitted" xlink:label="loc_us-gaapPurchaseCommitmentRemainingMinimumAmountCommitted_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapPurchaseCommitmentRemainingMinimumAmountCommitted_170" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_MaximumAmountOfFinanceToBeAmortizedUnderPropertyTaxAssessments" xlink:label="loc_peixMaximumAmountOfFinanceToBeAmortizedUnderPropertyTaxAssessments_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixMaximumAmountOfFinanceToBeAmortizedUnderPropertyTaxAssessments_170" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_ProjectAmortizedPeriod" xlink:label="loc_peixProjectAmortizedPeriod_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixProjectAmortizedPeriod_170" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProductionCostsCumulative" xlink:label="loc_us-gaapProductionCostsCumulative_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapProductionCostsCumulative_170" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_AdditionalPropertyTaxPayments" xlink:label="loc_peixAdditionalPropertyTaxPayments_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixAdditionalPropertyTaxPayments_170" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_InterestRateOnOutstandingBalanceOfAssessment" xlink:label="loc_peixInterestRateOnOutstandingBalanceOfAssessment_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixInterestRateOnOutstandingBalanceOfAssessment_170" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainLossRelatedToLitigationSettlement" xlink:label="loc_us-gaapGainLossRelatedToLitigationSettlement_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapGainLossRelatedToLitigationSettlement_170" xlink:type="arc" order="9"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromLegalSettlements" xlink:label="loc_us-gaapProceedsFromLegalSettlements_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapProceedsFromLegalSettlements_170" xlink:type="arc" order="10"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_CounsilRegistrationFees" xlink:label="loc_peixCounsilRegistrationFees_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixCounsilRegistrationFees_170" xlink:type="arc" order="11"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/FairValueMeasurements.Details" xlink:title="00000087 - Disclosure - FAIR VALUE MEASUREMENTS. (Details)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MeasurementInputTypeAxis" xlink:label="loc_us-gaapMeasurementInputTypeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapMeasurementInputTypeAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MeasurementInputTypeDomain" xlink:label="loc_us-gaapMeasurementInputTypeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapMeasurementInputTypeAxis" xlink:to="loc_us-gaapMeasurementInputTypeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MeasurementInputTypeDomain" xlink:label="loc_us-gaapMeasurementInputTypeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapMeasurementInputTypeAxis" xlink:to="loc_us-gaapMeasurementInputTypeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MeasurementInputExercisePriceMember" xlink:label="loc_us-gaapMeasurementInputExercisePriceMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapMeasurementInputTypeDomain" xlink:to="loc_us-gaapMeasurementInputExercisePriceMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MeasurementInputPriceVolatilityMember" xlink:label="loc_us-gaapMeasurementInputPriceVolatilityMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapMeasurementInputTypeDomain" xlink:to="loc_us-gaapMeasurementInputPriceVolatilityMember_30" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MeasurementInputRiskFreeInterestRateMember" xlink:label="loc_us-gaapMeasurementInputRiskFreeInterestRateMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapMeasurementInputTypeDomain" xlink:to="loc_us-gaapMeasurementInputRiskFreeInterestRateMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentIssuanceDate1" xlink:label="loc_us-gaapDebtInstrumentIssuanceDate1_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentIssuanceDate1_60" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WarrantsAndRightsOutstandingMeasurementInput" xlink:label="loc_us-gaapWarrantsAndRightsOutstandingMeasurementInput_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapWarrantsAndRightsOutstandingMeasurementInput_60" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WarrantsAndRightsOutstandingTerm" xlink:label="loc_us-gaapWarrantsAndRightsOutstandingTerm_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapWarrantsAndRightsOutstandingTerm_60" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfWarrantOrRightOutstanding" xlink:label="loc_us-gaapClassOfWarrantOrRightOutstanding_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapClassOfWarrantOrRightOutstanding_60" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAdjustmentOfWarrants" xlink:label="loc_us-gaapFairValueAdjustmentOfWarrants_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapFairValueAdjustmentOfWarrants_60" xlink:type="arc" order="4"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/FairValueMeasurements.Details1" xlink:title="00000088 - Disclosure - FAIR VALUE MEASUREMENTS. (Details 1)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaapStatementEquityComponentsAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapStatementEquityComponentsAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaapEquityComponentDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapStatementEquityComponentsAxis" xlink:to="loc_us-gaapEquityComponentDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaapEquityComponentDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementEquityComponentsAxis" xlink:to="loc_us-gaapEquityComponentDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WarrantMember" xlink:label="loc_us-gaapWarrantMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityComponentDomain" xlink:to="loc_us-gaapWarrantMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaapFairValueByFairValueHierarchyLevelAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapFairValueByFairValueHierarchyLevelAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaapFairValueMeasurementsFairValueHierarchyDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapFairValueByFairValueHierarchyLevelAxis" xlink:to="loc_us-gaapFairValueMeasurementsFairValueHierarchyDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaapFairValueMeasurementsFairValueHierarchyDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapFairValueByFairValueHierarchyLevelAxis" xlink:to="loc_us-gaapFairValueMeasurementsFairValueHierarchyDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel1Member" xlink:label="loc_us-gaapFairValueInputsLevel1Member_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFairValueMeasurementsFairValueHierarchyDomain" xlink:to="loc_us-gaapFairValueInputsLevel1Member_10" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaapFairValueInputsLevel2Member_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFairValueMeasurementsFairValueHierarchyDomain" xlink:to="loc_us-gaapFairValueInputsLevel2Member_20" xlink:type="arc" order="22"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaapFairValueInputsLevel3Member_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFairValueMeasurementsFairValueHierarchyDomain" xlink:to="loc_us-gaapFairValueInputsLevel3Member_30" xlink:type="arc" order="32"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaapFinancialInstrumentAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapFinancialInstrumentAxis" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaapTransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapFinancialInstrumentAxis" xlink:to="loc_us-gaapTransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaapTransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapFinancialInstrumentAxis" xlink:to="loc_us-gaapTransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_LongLivedAssetsHeldForSaleMember" xlink:label="loc_peixLongLivedAssetsHeldForSaleMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapTransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:to="loc_peixLongLivedAssetsHeldForSaleMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_DerivativeFinancialInstrumentMember" xlink:label="loc_peixDerivativeFinancialInstrumentMember_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapTransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:to="loc_peixDerivativeFinancialInstrumentMember_80" xlink:type="arc" order="81"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_DefinedBenefitPlanAssetsLargeMember" xlink:label="loc_peixDefinedBenefitPlanAssetsLargeMember_120"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapTransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:to="loc_peixDefinedBenefitPlanAssetsLargeMember_120" xlink:type="arc" order="121"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_DefinedBenefitPlanAssetsMidMember" xlink:label="loc_peixDefinedBenefitPlanAssetsMidMember_160"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapTransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:to="loc_peixDefinedBenefitPlanAssetsMidMember_160" xlink:type="arc" order="161"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_DefinedBenefitPlanAssetsIntlMember" xlink:label="loc_peixDefinedBenefitPlanAssetsIntlMember_200"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapTransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:to="loc_peixDefinedBenefitPlanAssetsIntlMember_200" xlink:type="arc" order="201"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_DefinedBenefitPlanAssetsFixedIncomeMember" xlink:label="loc_peixDefinedBenefitPlanAssetsFixedIncomeMember_240"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapTransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:to="loc_peixDefinedBenefitPlanAssetsFixedIncomeMember_240" xlink:type="arc" order="241"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisAbstract" xlink:label="loc_us-gaapFairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisAbstract_570"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapFairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisAbstract_570" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsFairValueDisclosureAbstract" xlink:label="loc_us-gaapAssetsFairValueDisclosureAbstract_570"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisAbstract_570" xlink:to="loc_us-gaapAssetsFairValueDisclosureAbstract_570" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="loc_us-gaapAssetsFairValueDisclosure_570"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsFairValueDisclosureAbstract_570" xlink:to="loc_us-gaapAssetsFairValueDisclosure_570" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanPlanAssetsTargetAllocationPercentage" xlink:label="loc_us-gaapDefinedBenefitPlanPlanAssetsTargetAllocationPercentage_570"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsFairValueDisclosureAbstract_570" xlink:to="loc_us-gaapDefinedBenefitPlanPlanAssetsTargetAllocationPercentage_570" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosureAbstract" xlink:label="loc_us-gaapLiabilitiesFairValueDisclosureAbstract_570"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisAbstract_570" xlink:to="loc_us-gaapLiabilitiesFairValueDisclosureAbstract_570" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosure" xlink:label="loc_us-gaapLiabilitiesFairValueDisclosure_570"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesFairValueDisclosureAbstract_570" xlink:to="loc_us-gaapLiabilitiesFairValueDisclosure_570" xlink:type="arc" order="5"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/FairValueMeasurements.DetailsTextual" xlink:title="00000089 - Disclosure - FAIR VALUE MEASUREMENTS. (Details Narrative)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/ParentCompanyFinancials.Details" xlink:title="00000090 - Disclosure - PARENT COMPANY FINANCIALS. (Details)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srtConsolidatedEntitiesAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtConsolidatedEntitiesAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srtConsolidatedEntitiesDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtConsolidatedEntitiesAxis" xlink:to="loc_srtConsolidatedEntitiesDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srtConsolidatedEntitiesDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtConsolidatedEntitiesAxis" xlink:to="loc_srtConsolidatedEntitiesDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ParentCompanyMember" xlink:label="loc_srtParentCompanyMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtConsolidatedEntitiesDomain" xlink:to="loc_srtParentCompanyMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsCurrentAbstract" xlink:label="loc_us-gaapAssetsCurrentAbstract_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAssetsCurrentAbstract_30" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaapCashAndCashEquivalentsAtCarryingValue_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsCurrentAbstract_30" xlink:to="loc_us-gaapCashAndCashEquivalentsAtCarryingValue_30" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsReceivableGross" xlink:label="loc_us-gaapAccountsReceivableGross_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsCurrentAbstract_30" xlink:to="loc_us-gaapAccountsReceivableGross_30" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssetsCurrent" xlink:label="loc_us-gaapOtherAssetsCurrent_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsCurrentAbstract_30" xlink:to="loc_us-gaapOtherAssetsCurrent_30" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="loc_us-gaapAssetsCurrent_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsCurrentAbstract_30" xlink:to="loc_us-gaapAssetsCurrent_30" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaapPropertyPlantAndEquipmentNet_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapPropertyPlantAndEquipmentNet_30" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsNoncurrentAbstract" xlink:label="loc_us-gaapAssetsNoncurrentAbstract_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAssetsNoncurrentAbstract_30" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures" xlink:label="loc_us-gaapInvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsNoncurrentAbstract_30" xlink:to="loc_us-gaapInvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures_30" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset" xlink:label="loc_us-gaapOperatingLeaseRightOfUseAsset_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsNoncurrentAbstract_30" xlink:to="loc_us-gaapOperatingLeaseRightOfUseAsset_30" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_PacificEthanolWestPlantReceivable" xlink:label="loc_peixPacificEthanolWestPlantReceivable_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsNoncurrentAbstract_30" xlink:to="loc_peixPacificEthanolWestPlantReceivable_30" xlink:type="arc" order="9"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="loc_us-gaapOtherAssetsNoncurrent_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsNoncurrentAbstract_30" xlink:to="loc_us-gaapOtherAssetsNoncurrent_30" xlink:type="arc" order="10"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsNoncurrent" xlink:label="loc_us-gaapAssetsNoncurrent_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAssetsNoncurrentAbstract_30" xlink:to="loc_us-gaapAssetsNoncurrent_30" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaapAssets_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAssets_30" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesCurrentAbstract" xlink:label="loc_us-gaapLiabilitiesCurrentAbstract_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapLiabilitiesCurrentAbstract_30" xlink:type="arc" order="13"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent" xlink:label="loc_us-gaapAccountsPayableAndAccruedLiabilitiesCurrent_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesCurrentAbstract_30" xlink:to="loc_us-gaapAccountsPayableAndAccruedLiabilitiesCurrent_30" xlink:type="arc" order="14"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned" xlink:label="loc_us-gaapBusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesCurrentAbstract_30" xlink:to="loc_us-gaapBusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned_30" xlink:type="arc" order="15"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaapLongTermDebtCurrent_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesCurrentAbstract_30" xlink:to="loc_us-gaapLongTermDebtCurrent_30" xlink:type="arc" order="16"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAccruedLiabilitiesCurrent" xlink:label="loc_us-gaapOtherAccruedLiabilitiesCurrent_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesCurrentAbstract_30" xlink:to="loc_us-gaapOtherAccruedLiabilitiesCurrent_30" xlink:type="arc" order="17"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaapLiabilitiesCurrent_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesCurrentAbstract_30" xlink:to="loc_us-gaapLiabilitiesCurrent_30" xlink:type="arc" order="18"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent" xlink:label="loc_us-gaapOperatingLeaseLiabilityNoncurrent_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLiabilitiesCurrentAbstract_30" xlink:to="loc_us-gaapOperatingLeaseLiabilityNoncurrent_30" xlink:type="arc" order="19"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxLiabilitiesCurrent" xlink:label="loc_us-gaapDeferredTaxLiabilitiesCurrent_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDeferredTaxLiabilitiesCurrent_30" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherLiabilitiesCurrent" xlink:label="loc_us-gaapOtherLiabilitiesCurrent_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOtherLiabilitiesCurrent_30" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaapLiabilities_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapLiabilities_30" xlink:type="arc" order="22"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquityAbstract" xlink:label="loc_us-gaapStockholdersEquityAbstract_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockholdersEquityAbstract_30" xlink:type="arc" order="23"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PreferredStockValue" xlink:label="loc_us-gaapPreferredStockValue_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStockholdersEquityAbstract_30" xlink:to="loc_us-gaapPreferredStockValue_30" xlink:type="arc" order="24"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaapCommonStockValue_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStockholdersEquityAbstract_30" xlink:to="loc_us-gaapCommonStockValue_30" xlink:type="arc" order="25"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdditionalPaidInCapital" xlink:label="loc_us-gaapAdditionalPaidInCapital_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStockholdersEquityAbstract_30" xlink:to="loc_us-gaapAdditionalPaidInCapital_30" xlink:type="arc" order="26"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaapAccumulatedOtherComprehensiveIncomeLossNetOfTax_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStockholdersEquityAbstract_30" xlink:to="loc_us-gaapAccumulatedOtherComprehensiveIncomeLossNetOfTax_30" xlink:type="arc" order="27"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaapRetainedEarningsAccumulatedDeficit_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStockholdersEquityAbstract_30" xlink:to="loc_us-gaapRetainedEarningsAccumulatedDeficit_30" xlink:type="arc" order="28"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaapStockholdersEquity_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStockholdersEquityAbstract_30" xlink:to="loc_us-gaapStockholdersEquity_30" xlink:type="arc" order="29"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaapLiabilitiesAndStockholdersEquity_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapLiabilitiesAndStockholdersEquity_30" xlink:type="arc" order="30"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/ParentCompanyFinancials.Details1" xlink:title="00000091 - Disclosure - PARENT COMPANY FINANCIALS. (Details 1)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srtConsolidatedEntitiesAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtConsolidatedEntitiesAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srtConsolidatedEntitiesDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtConsolidatedEntitiesAxis" xlink:to="loc_srtConsolidatedEntitiesDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srtConsolidatedEntitiesDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtConsolidatedEntitiesAxis" xlink:to="loc_srtConsolidatedEntitiesDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ParentCompanyMember" xlink:label="loc_srtParentCompanyMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtConsolidatedEntitiesDomain" xlink:to="loc_srtParentCompanyMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromRelatedParties" xlink:label="loc_us-gaapRevenueFromRelatedParties_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapRevenueFromRelatedParties_30" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense" xlink:label="loc_us-gaapSellingGeneralAndAdministrativeExpense_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapSellingGeneralAndAdministrativeExpense_30" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaapOperatingIncomeLoss_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingIncomeLoss_30" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt" xlink:label="loc_us-gaapGainsLossesOnExtinguishmentOfDebt_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapGainsLossesOnExtinguishmentOfDebt_30" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestIncomeOperating" xlink:label="loc_us-gaapInterestIncomeOperating_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapInterestIncomeOperating_30" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaapInterestExpense_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapInterestExpense_30" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherExpenses" xlink:label="loc_us-gaapOtherExpenses_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOtherExpenses_30" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_30" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaapIncomeTaxExpenseBenefit_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapIncomeTaxExpenseBenefit_30" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaapIncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapIncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest_30" xlink:type="arc" order="9"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_EquityInEarningsLossesOfSubsidiaries" xlink:label="loc_peixEquityInEarningsLossesOfSubsidiaries_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_peixEquityInEarningsLossesOfSubsidiaries_30" xlink:type="arc" order="10"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaapProfitLoss_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapProfitLoss_30" xlink:type="arc" order="11"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/ParentCompanyFinancials.Details2" xlink:title="00000092 - Disclosure - PARENT COMPANY FINANCIALS. (Details 2)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaapStatementTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStatementTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srtConsolidatedEntitiesAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtConsolidatedEntitiesAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srtConsolidatedEntitiesDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtConsolidatedEntitiesAxis" xlink:to="loc_srtConsolidatedEntitiesDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srtConsolidatedEntitiesDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtConsolidatedEntitiesAxis" xlink:to="loc_srtConsolidatedEntitiesDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ParentCompanyMember" xlink:label="loc_srtParentCompanyMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtConsolidatedEntitiesDomain" xlink:to="loc_srtParentCompanyMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract" xlink:label="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesAbstract_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesAbstract_30" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaapNetIncomeLoss_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesAbstract_30" xlink:to="loc_us-gaapNetIncomeLoss_30" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract" xlink:label="loc_us-gaapAdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesAbstract_30" xlink:to="loc_us-gaapAdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_30" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_EquityInEarningsLossesOfSubsidiaries" xlink:label="loc_peixEquityInEarningsLossesOfSubsidiaries_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_30" xlink:to="loc_peixEquityInEarningsLossesOfSubsidiaries_30" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_DividendsFromSubsidiaries" xlink:label="loc_peixDividendsFromSubsidiaries_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_30" xlink:to="loc_peixDividendsFromSubsidiaries_30" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization" xlink:label="loc_us-gaapDepreciationDepletionAndAmortization_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_30" xlink:to="loc_us-gaapDepreciationDepletionAndAmortization_30" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt" xlink:label="loc_us-gaapGainsLossesOnExtinguishmentOfDebt_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_30" xlink:to="loc_us-gaapGainsLossesOnExtinguishmentOfDebt_30" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxesAndTaxCredits" xlink:label="loc_us-gaapDeferredIncomeTaxesAndTaxCredits_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_30" xlink:to="loc_us-gaapDeferredIncomeTaxesAndTaxCredits_30" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AmortizationOfDebtDiscountPremium" xlink:label="loc_us-gaapAmortizationOfDebtDiscountPremium_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_30" xlink:to="loc_us-gaapAmortizationOfDebtDiscountPremium_30" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssetsAndLiabilitiesNetAbstract" xlink:label="loc_us-gaapIncreaseDecreaseInOtherOperatingAssetsAndLiabilitiesNetAbstract_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesAbstract_30" xlink:to="loc_us-gaapIncreaseDecreaseInOtherOperatingAssetsAndLiabilitiesNetAbstract_30" xlink:type="arc" order="9"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable" xlink:label="loc_us-gaapIncreaseDecreaseInAccountsReceivable_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncreaseDecreaseInOtherOperatingAssetsAndLiabilitiesNetAbstract_30" xlink:to="loc_us-gaapIncreaseDecreaseInAccountsReceivable_30" xlink:type="arc" order="10"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInOtherCurrentAssets" xlink:label="loc_us-gaapIncreaseDecreaseInOtherCurrentAssets_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncreaseDecreaseInOtherOperatingAssetsAndLiabilitiesNetAbstract_30" xlink:to="loc_us-gaapIncreaseDecreaseInOtherCurrentAssets_30" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities" xlink:label="loc_us-gaapIncreaseDecreaseInAccountsPayableAndAccruedLiabilities_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncreaseDecreaseInOtherOperatingAssetsAndLiabilitiesNetAbstract_30" xlink:to="loc_us-gaapIncreaseDecreaseInAccountsPayableAndAccruedLiabilities_30" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivableFromSecuritization" xlink:label="loc_us-gaapIncreaseDecreaseInAccountsReceivableFromSecuritization_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncreaseDecreaseInOtherOperatingAssetsAndLiabilitiesNetAbstract_30" xlink:to="loc_us-gaapIncreaseDecreaseInAccountsReceivableFromSecuritization_30" xlink:type="arc" order="13"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_IncreaseDecreaseAccountsPayableWithSubsidiaries" xlink:label="loc_peixIncreaseDecreaseAccountsPayableWithSubsidiaries_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncreaseDecreaseInOtherOperatingAssetsAndLiabilitiesNetAbstract_30" xlink:to="loc_peixIncreaseDecreaseAccountsPayableWithSubsidiaries_30" xlink:type="arc" order="14"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaapNetCashProvidedByUsedInOperatingActivities_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapNetCashProvidedByUsedInOperatingActivitiesAbstract_30" xlink:to="loc_us-gaapNetCashProvidedByUsedInOperatingActivities_30" xlink:type="arc" order="15"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract" xlink:label="loc_us-gaapNetCashProvidedByUsedInInvestingActivitiesAbstract_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapNetCashProvidedByUsedInInvestingActivitiesAbstract_30" xlink:type="arc" order="16"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="loc_us-gaapPaymentsToAcquirePropertyPlantAndEquipment_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapNetCashProvidedByUsedInInvestingActivitiesAbstract_30" xlink:to="loc_us-gaapPaymentsToAcquirePropertyPlantAndEquipment_30" xlink:type="arc" order="17"/>
<link:loc xlink:type="locator" xlink:href="peix-20191231.xsd#peix_InvestmentsInSubsidiaries" xlink:label="loc_peixInvestmentsInSubsidiaries_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapNetCashProvidedByUsedInInvestingActivitiesAbstract_30" xlink:to="loc_peixInvestmentsInSubsidiaries_30" xlink:type="arc" order="18"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaapNetCashProvidedByUsedInInvestingActivities_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapNetCashProvidedByUsedInInvestingActivitiesAbstract_30" xlink:to="loc_us-gaapNetCashProvidedByUsedInInvestingActivities_30" xlink:type="arc" order="19"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract" xlink:label="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesAbstract_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesAbstract_30" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock" xlink:label="loc_us-gaapProceedsFromIssuanceOfCommonStock_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesAbstract_30" xlink:to="loc_us-gaapProceedsFromIssuanceOfCommonStock_30" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromWarrantExercises" xlink:label="loc_us-gaapProceedsFromWarrantExercises_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesAbstract_30" xlink:to="loc_us-gaapProceedsFromWarrantExercises_30" xlink:type="arc" order="22"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RepaymentsOfNotesPayable" xlink:label="loc_us-gaapRepaymentsOfNotesPayable_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesAbstract_30" xlink:to="loc_us-gaapRepaymentsOfNotesPayable_30" xlink:type="arc" order="23"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsOfDividends" xlink:label="loc_us-gaapPaymentsOfDividends_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesAbstract_30" xlink:to="loc_us-gaapPaymentsOfDividends_30" xlink:type="arc" order="24"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaapNetCashProvidedByUsedInFinancingActivities_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesAbstract_30" xlink:to="loc_us-gaapNetCashProvidedByUsedInFinancingActivities_30" xlink:type="arc" order="25"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease" xlink:label="loc_us-gaapCashAndCashEquivalentsPeriodIncreaseDecrease_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapNetCashProvidedByUsedInFinancingActivitiesAbstract_30" xlink:to="loc_us-gaapCashAndCashEquivalentsPeriodIncreaseDecrease_30" xlink:type="arc" order="26"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaapCashAndCashEquivalentsAtCarryingValue_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapCashAndCashEquivalentsAtCarryingValue_30" xlink:type="arc" order="27"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/ParentCompanyFinancials.DetailsNarrative" xlink:title="00000093 - Disclosure - PARENT COMPANY FINANCIALS. (Details Narrative)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://pacificethanol.net/role/QuarterlyFinancialDataUnaudited.Details" xlink:title="00000094 - Disclosure - QUARTERLY FINANCIAL DATA (UNAUDITED). (Details)"/>
</link:linkbase>


12 Subsequent Filings that Reference this Filing

  As Of               Filer                 Filing    For·On·As Docs:Size             Issuer                      Filing Agent

 3/14/24  Alto Ingredients, Inc.            10-K       12/31/23  103:10M                                    EdgarAgents LLC/FA
 6/23/23  Alto Ingredients, Inc.            S-3                    7:2.4M                                   EdgarAgents LLC/FA
 3/14/23  Alto Ingredients, Inc.            10-K       12/31/22  111:9.9M                                   EdgarAgents LLC/FA
12/13/22  Alto Ingredients, Inc.            424B3      12/12/22    1:190K                                   EdgarAgents LLC/FA
11/29/22  Alto Ingredients, Inc.            S-3                    4:290K                                   EdgarAgents LLC/FA
 3/15/22  Alto Ingredients, Inc.            10-K       12/31/21  106:9.9M                                   EdgarAgents LLC/FA
 3/26/21  Alto Ingredients, Inc.            10-K       12/31/20  107:9.1M                                   EdgarAgents LLC/FA
11/30/20  Alto Ingredients, Inc.            424B3                  1:190K                                   EdgarAgents LLC/FA
11/20/20  Alto Ingredients, Inc.            S-3                    3:296K                                   EdgarAgents LLC/FA
11/18/20  Alto Ingredients, Inc.            S-8        11/18/20    4:342K                                   EdgarAgents LLC/FA
10/26/20  Alto Ingredients, Inc.            424B5                  1:599K                                   EdgarAgents LLC/FA
 8/13/20  Alto Ingredients, Inc.            424B5                  1:472K                                   EdgarAgents LLC/FA
Top
Filing Submission 0001213900-20-007976   –   Alternative Formats (Word / Rich Text, HTML, Plain Text, et al.)

Copyright © 2024 Fran Finnegan & Company LLC – All Rights Reserved.
AboutPrivacyRedactionsHelp — Sat., Apr. 27, 6:08:47.2pm ET