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

SPI Energy Co., Ltd. – ‘20-F/A’ for 12/31/20 – ‘EX-101.DEF’

On:  Tuesday, 11/23/21, at 2:00pm ET   ·   For:  12/31/20   ·   Accession #:  1683168-21-5934   ·   File #:  1-37678

Previous ‘20-F’:  ‘20-F/A’ on 10/29/21 for 12/31/20   ·   Latest ‘20-F’:  This Filing   ·   25 References:   

Find Words in Filings emoji
 
  in    Show  and   Hints

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

11/23/21  SPI Energy Co., Ltd.              20-F/A     12/31/20  127:8.2M                                   GlobalOne Filings Inc/FA

Amendment to Annual or Annual-Transition Report by a Foreign Non-Canadian Issuer   —   Form 20-F   —   SEA’34

Filing Table of Contents

Document/Exhibit                   Description                      Pages   Size 

 1: 20-F/A      Form 20-F Amendment 2                               HTML   1.04M 
 3: EX-13.1     Certification by the Chief Executive Officer        HTML     31K 
                Pursuant to Section 906 of the Sarbanes-Oxley Act                
                of 2002                                                          
 2: EX-12.1     Certification by the Chief Executive Officer        HTML     35K 
                Pursuant to Section 302 of the Sarbanes-Oxley Act                
                of 2002                                                          
 4: EX-15.1     Consent of Independent Registered Public            HTML     32K 
                Accounting Firm                                                  
 5: EX-15.2     Consent of Independent Registered Public            HTML     31K 
                Accounting Firm                                                  
12: R1          Document and Entity Information                     HTML     71K 
13: R2          Consolidated Balance Sheets                         HTML    158K 
14: R3          Consolidated Balance Sheets (Parenthetical)         HTML     40K 
15: R4          Consolidated Statements of Operations               HTML    142K 
16: R5          Consolidated Statements of Comprehensive Loss       HTML     67K 
17: R6          Consolidated Statements of Equity (Deficit)         HTML    112K 
18: R7          Consolidated Statements of Cash Flows               HTML    200K 
19: R8          Reconciliation of Cash                              HTML     41K 
20: R9          1. Description of Business and Organization         HTML     47K 
21: R10         2. Liquidity Condition                              HTML     37K 
22: R11         3. Summary of Significant Accounting Policies       HTML    136K 
23: R12         4. Disposition                                      HTML     48K 
24: R13         5. Acquisitions                                     HTML     46K 
25: R14         6. Accounts Receivable, net                         HTML     42K 
26: R15         7. Inventories, net                                 HTML     38K 
27: R16         8. Project Assets, net                              HTML     39K 
28: R17         9. Prepaid Expenses and Other Current Assets, net   HTML     40K 
29: R18         10. Intangible Assets, net                          HTML     50K 
30: R19         11. Property, Plant and Equipment, net              HTML     41K 
31: R20         12. Fair Value Measurement                          HTML     45K 
32: R21         13. Accrued Liabilities                             HTML     40K 
33: R22         14. Short-term Borrowings and Long-term Borrowings  HTML     50K 
34: R23         15. Convertible Bonds                               HTML     50K 
35: R24         16. Amount Due to an Affiliate                      HTML     37K 
36: R25         17. Ordinary Shares                                 HTML     37K 
37: R26         18. Noncontrolling Interests                        HTML     37K 
38: R27         19. Share-based Compensation                        HTML     85K 
39: R28         20. Income Taxes                                    HTML     69K 
40: R29         21. Net Loss Per Share                              HTML     45K 
41: R30         22. Leases                                          HTML     42K 
42: R31         23. Commitments and Contingencies                   HTML     38K 
43: R32         24. Concentration Risk                              HTML     35K 
44: R33         25. Related Party Transactions                      HTML     36K 
45: R34         26. Subsequent Events                               HTML     40K 
46: R35         3. Summary of Significant Accounting Policies       HTML    215K 
                (Policies)                                                       
47: R36         1. Description of Business and Organization         HTML     39K 
                (Tables)                                                         
48: R37         3. Summary of Significant Accounting Policies       HTML     74K 
                (Tables)                                                         
49: R38         4. Disposition (Tables)                             HTML     45K 
50: R39         5. Acquisitions (Tables)                            HTML     38K 
51: R40         6. Accounts Receivable, net (Tables)                HTML     43K 
52: R41         7. Inventories, net (Tables)                        HTML     38K 
53: R42         8. Project Assets, net (Tables)                     HTML     37K 
54: R43         9. Prepaid Expenses and Other Current Assets, net   HTML     38K 
                (Tables)                                                         
55: R44         10. Intangible Assets, net (Tables)                 HTML     51K 
56: R45         11. Property, Plant and Equipment, net (Tables)     HTML     39K 
57: R46         12. Fair Value Measurement (Tables)                 HTML     42K 
58: R47         13. Accrued Liabilities (Tables)                    HTML     37K 
59: R48         14. Short-term Borrowings and Long-term Borrowings  HTML     45K 
                (Tables)                                                         
60: R49         15. Convertible Bonds (Tables)                      HTML     37K 
61: R50         16. Amount Due to an Affiliate (Tables)             HTML     36K 
62: R51         19. Share-based Compensation (Tables)               HTML     93K 
63: R52         20. Income Taxes (Tables)                           HTML     68K 
64: R53         21. Net Loss Per Share (Tables)                     HTML     46K 
65: R54         22. Leases (Tables)                                 HTML     43K 
66: R55         1. Description of Business and Organization         HTML     39K 
                (Details Narrative)                                              
67: R56         2. Going Concern (Details Narrative)                HTML     44K 
68: R57         3. Summary of Significant Accounting Policies       HTML     44K 
                (Details - PPE useful lives)                                     
69: R58         3. Summary of Significant Accounting Policies       HTML     79K 
                (Details - Disaggregation of revenue by revenue                  
                stream)                                                          
70: R59         3. Summary of Significant Accounting Policies       HTML     37K 
                (Details - Contract balance)                                     
71: R60         3. Summary of Significant Accounting Policies       HTML     39K 
                (Details - Capitalized interest)                                 
72: R61         3. Summary of Significant Accounting Policies       HTML     45K 
                (Details Narrative)                                              
73: R62         4. Disposition (Details - Statement of operation)   HTML     65K 
74: R63         4. Disposition (Details Narrative)                  HTML     51K 
75: R64         5. Acquisitions (Details - Allocation of purchase   HTML     73K 
                price)                                                           
76: R65         5. Acquisitions (Details Narrative)                 HTML     69K 
77: R66         6. Accounts Receivable, net (Details - Accounts     HTML     39K 
                receivable)                                                      
78: R67         6. Accounts Receivable, net (Details - Allowance    HTML     43K 
                for Doubtful Accounts)                                           
79: R68         6. Accounts Receivable, net (Details Narrative)     HTML     33K 
80: R69         7. Inventories, net (Details)                       HTML     44K 
81: R70         7. Inventories, net (Details Narrative)             HTML     34K 
82: R71         8. Project Assets, net (Details)                    HTML     40K 
83: R72         8. Project Assets, net (Details Narrative)          HTML     86K 
84: R73         9. Prepaid expenses and other current assets, net   HTML     42K 
                (Details)                                                        
85: R74         9. Prepaid expenses and other current assets, net   HTML     41K 
                (Details Narrative)                                              
86: R75         10. Intangible Assets, net (Details - Intangible    HTML     60K 
                Assets)                                                          
87: R76         10. Intangible Assets, net (Details - Future        HTML     46K 
                Amortization)                                                    
88: R77         10. Intangible Assets, net (Details Narrative)      HTML     37K 
89: R78         11. Property, Plant and Equipment, net (Details)    HTML     57K 
90: R79         11. Property, Plant and Equipment, net (Details     HTML     37K 
                Narrative)                                                       
91: R80         12. Fair value measurement (Details - ILIAD and     HTML     50K 
                Streeterville Capital)                                           
92: R81         12. Fair Value Measurement (Details - Warrants)     HTML     40K 
93: R82         12. Fair Value Measurement (Details Narrative)      HTML     40K 
94: R83         13. Accrued Liabilities (Details)                   HTML     45K 
95: R84         14. Short-term Borrowings and Long-term Borrowings  HTML     54K 
                (Details - Debt)                                                 
96: R85         14. Short-term Borrowings and Long-term Borrowings  HTML     51K 
                (Details - Maturities)                                           
97: R86         14. Short-term Borrowings and Long-term Borrowings  HTML     79K 
                (Details Narrative)                                              
98: R87         15. Convertible Bonds (Details)                     HTML     46K 
99: R88         15. Convertible Bonds (Details Narrative)           HTML    108K 
100: R89         16. Amount Due to an Affiliate (Details)            HTML     40K  
101: R90         16. Amount Due to an Affiliate (Details Narrative)  HTML     45K  
102: R91         17. Ordinary Shares (Details Narrative)             HTML     61K  
103: R92         18. Noncontrolling Interests (Details Narrative)    HTML     52K  
104: R93         19. Share-based Compensation (Details -             HTML     40K  
                Stock-Based Compensation Expense by Award type)                  
105: R94         19. Share-based Compensation (Details -             HTML     42K  
                Compensation expense by line item)                               
106: R95         19. Share-based Compensation (Details -             HTML     46K  
                Assumptions)                                                     
107: R96         19. Share-based Compensation (Details - Option      HTML     91K  
                Activity)                                                        
108: R97         19. Share-based Compensation (Details - Options by  HTML     63K  
                Exercise Price)                                                  
109: R98         19. Share-based Compensation (Details - RSU's)      HTML     52K  
110: R99         19. Share-based Compensation (Details - Non-vested  HTML     87K  
                options)                                                         
111: R100        19. Share-based Compensation (Details Narrative)    HTML     38K  
112: R101        20. Income Taxes (Details - Loss before Provision)  HTML     42K  
113: R102        20. Income Taxes (Details - Provision for income    HTML     60K  
                taxes)                                                           
114: R103        20. Income Taxes (Details - Tax reconciliation)     HTML     62K  
115: R104        20. Income Taxes (Details - Deferred income taxes)  HTML     72K  
116: R105        20. Income Taxes (Details Narrative)                HTML     51K  
117: R106        21. Net Loss Per Share (Details - Basic and         HTML     49K  
                Diluted)                                                         
118: R107        21. Net Loss Per Share (Details - Antidilutive      HTML     43K  
                shares)                                                          
119: R108        22. Leases (Details - Maturity of Lease             HTML     55K  
                Liabilities)                                                     
120: R109        22. Leases (Details - Supplemental information      HTML     35K  
                related to operating leases)                                     
121: R110        22. Leases (Details Narrative)                      HTML     39K  
122: R111        23. Commitments and Contingencies (Details          HTML     34K  
                Narrative)                                                       
123: R112        24. Concentration Risk (Details Narrative)          HTML     39K  
124: R113        25. Related Party Transactions (Details Narrative)  HTML     37K  
126: XML         IDEA XML File -- Filing Summary                      XML    245K  
125: EXCEL       IDEA Workbook of Financial Reports                  XLSX    164K  
 6: EX-101.INS  XBRL Instance -- spi-20201231                        XML   2.39M 
 8: EX-101.CAL  XBRL Calculations -- spi-20201231_cal                XML    350K 
 9: EX-101.DEF  XBRL Definitions -- spi-20201231_def                 XML    779K 
10: EX-101.LAB  XBRL Labels -- spi-20201231_lab                      XML   1.56M 
11: EX-101.PRE  XBRL Presentations -- spi-20201231_pre               XML   1.27M 
 7: EX-101.SCH  XBRL Schema -- spi-20201231                          XSD    272K 
127: ZIP         XBRL Zipped Folder -- 0001683168-21-005934-xbrl      Zip    217K  


‘EX-101.DEF’   —   XBRL Definitions — spi-20201231_def


This Exhibit is an XBRL XML File.


                                                                                                                                                                                
<?xml version="1.0" standalone="no" encoding="windows-1252"?>
<!-- Field: Doc-Info; Name: Generator; Value: GoFiler Complete; Version: 5.10b -->
<!-- Field: Doc-Info; Name: VendorURI; Value: https://www.novaworks.com -->
<!-- Field: Doc-Info; Name: Source; Value: spi%2D20201231.xfr; Date: 2021%2D11%2D23T17:09:53Z -->
<!-- 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://spisolar.com/role/DocumentAndEntityInformation" xlink:href="spi-20201231.xsd#DocumentAndEntityInformation" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/StatementConsolidatedBalanceSheets" xlink:href="spi-20201231.xsd#StatementConsolidatedBalanceSheets" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="spi-20201231.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/ConsolidatedStatementsOfOperations" xlink:href="spi-20201231.xsd#ConsolidatedStatementsOfOperations" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/StatementConsolidatedStatementsOfComprehensiveLoss" xlink:href="spi-20201231.xsd#StatementConsolidatedStatementsOfComprehensiveLoss" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/ConsolidatedStatementsOfEquityDeficit" xlink:href="spi-20201231.xsd#ConsolidatedStatementsOfEquityDeficit" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="spi-20201231.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/ReconciliationOfCash" xlink:href="spi-20201231.xsd#ReconciliationOfCash" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/DescriptionOfBusinessAndOrganization" xlink:href="spi-20201231.xsd#DescriptionOfBusinessAndOrganization" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/LiquidityCondition" xlink:href="spi-20201231.xsd#LiquidityCondition" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="spi-20201231.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/Disposition" xlink:href="spi-20201231.xsd#Disposition" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/BusinessAcquisitions" xlink:href="spi-20201231.xsd#BusinessAcquisitions" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/AccountsReceivableNet" xlink:href="spi-20201231.xsd#AccountsReceivableNet" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/InventoriesNet" xlink:href="spi-20201231.xsd#InventoriesNet" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/ProjectAssets" xlink:href="spi-20201231.xsd#ProjectAssets" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/PrepaidExpensesAndOtherCurrentAssets" xlink:href="spi-20201231.xsd#PrepaidExpensesAndOtherCurrentAssets" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/IntangibleAssetsNet" xlink:href="spi-20201231.xsd#IntangibleAssetsNet" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/PropertyPlantAndEquipmentNet" xlink:href="spi-20201231.xsd#PropertyPlantAndEquipmentNet" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/FairValueMeasurement" xlink:href="spi-20201231.xsd#FairValueMeasurement" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/AccruedLiabilities" xlink:href="spi-20201231.xsd#AccruedLiabilities" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/Short-termBorrowingsAndLong-termBorrowings" xlink:href="spi-20201231.xsd#Short-termBorrowingsAndLong-termBorrowings" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/ConvertibleBonds" xlink:href="spi-20201231.xsd#ConvertibleBonds" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/AmountDueToAffiliate" xlink:href="spi-20201231.xsd#AmountDueToAffiliate" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/OrdinaryShares" xlink:href="spi-20201231.xsd#OrdinaryShares" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/NoncontrollingInterests" xlink:href="spi-20201231.xsd#NoncontrollingInterests" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/Share-basedCompensation" xlink:href="spi-20201231.xsd#Share-basedCompensation" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/IncomeTaxes" xlink:href="spi-20201231.xsd#IncomeTaxes" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/NetLossPerShare" xlink:href="spi-20201231.xsd#NetLossPerShare" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/Leases" xlink:href="spi-20201231.xsd#Leases" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/CommitmentsAndContingencies" xlink:href="spi-20201231.xsd#CommitmentsAndContingencies" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/ConcentrationRisk" xlink:href="spi-20201231.xsd#ConcentrationRisk" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/RelatedPartyTransactions" xlink:href="spi-20201231.xsd#RelatedPartyTransactions" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/SubsequentEvents" xlink:href="spi-20201231.xsd#SubsequentEvents" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="spi-20201231.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/DescriptionOfBusinessAndOrganizationTables" xlink:href="spi-20201231.xsd#DescriptionOfBusinessAndOrganizationTables" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:href="spi-20201231.xsd#SummaryOfSignificantAccountingPoliciesTables" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/DispositionTables" xlink:href="spi-20201231.xsd#DispositionTables" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/AcquisitionsTables" xlink:href="spi-20201231.xsd#AcquisitionsTables" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/AccountsReceivableNetTables" xlink:href="spi-20201231.xsd#AccountsReceivableNetTables" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/InventoriesNetTables" xlink:href="spi-20201231.xsd#InventoriesNetTables" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/ProjectAssetsNetTables" xlink:href="spi-20201231.xsd#ProjectAssetsNetTables" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/PrepaidExpensesAndOtherCurrentAssetsNetTables" xlink:href="spi-20201231.xsd#PrepaidExpensesAndOtherCurrentAssetsNetTables" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/IntangibleAssetsNetTables" xlink:href="spi-20201231.xsd#IntangibleAssetsNetTables" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/PropertyPlantAndEquipmentNetTables" xlink:href="spi-20201231.xsd#PropertyPlantAndEquipmentNetTables" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/FairValueMeasurementTables" xlink:href="spi-20201231.xsd#FairValueMeasurementTables" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/AccruedLiabilitiesTables" xlink:href="spi-20201231.xsd#AccruedLiabilitiesTables" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/Short-termBorrowingsAndLong-termBorrowingsTables" xlink:href="spi-20201231.xsd#Short-termBorrowingsAndLong-termBorrowingsTables" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/ConvertibleBondsTables" xlink:href="spi-20201231.xsd#ConvertibleBondsTables" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/AmountDueToAffiliateTables" xlink:href="spi-20201231.xsd#AmountDueToAffiliateTables" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/Share-basedCompensationTables" xlink:href="spi-20201231.xsd#Share-basedCompensationTables" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/IncomeTaxesTables" xlink:href="spi-20201231.xsd#IncomeTaxesTables" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/NetLossPerShareTables" xlink:href="spi-20201231.xsd#NetLossPerShareTables" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/LeasesTables" xlink:href="spi-20201231.xsd#LeasesTables" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/DescriptionOfBusinessAndOrganizationDetailsNarrative" xlink:href="spi-20201231.xsd#DescriptionOfBusinessAndOrganizationDetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/GoingConcernDetailsNarrative" xlink:href="spi-20201231.xsd#GoingConcernDetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesDetails-PpeUsefulLives" xlink:href="spi-20201231.xsd#SummaryOfSignificantAccountingPoliciesDetails-PpeUsefulLives" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesDetails-DisaggregationOfRevenueByRevenueStream" xlink:href="spi-20201231.xsd#SummaryOfSignificantAccountingPoliciesDetails-DisaggregationOfRevenueByRevenueStream" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesDetails-ContractBalance" xlink:href="spi-20201231.xsd#SummaryOfSignificantAccountingPoliciesDetails-ContractBalance" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/DisclosureSummaryOfSignificantAccountingPoliciesCapitalizedInterestDetails" xlink:href="spi-20201231.xsd#DisclosureSummaryOfSignificantAccountingPoliciesCapitalizedInterestDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesDetailsNarrative" xlink:href="spi-20201231.xsd#SummaryOfSignificantAccountingPoliciesDetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/DispositionDetails-StatementOfOperation" xlink:href="spi-20201231.xsd#DispositionDetails-StatementOfOperation" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/DispositionDetailsNarrative" xlink:href="spi-20201231.xsd#DispositionDetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/AcquisitionsDetails-AllocationOfPurchasePrice" xlink:href="spi-20201231.xsd#AcquisitionsDetails-AllocationOfPurchasePrice" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/AcquisitionsDetailsNarrative" xlink:href="spi-20201231.xsd#AcquisitionsDetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/AccountsReceivableNetDetails-AccountsReceivable" xlink:href="spi-20201231.xsd#AccountsReceivableNetDetails-AccountsReceivable" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/AccountsReceivableNetDetails-AllowanceForDoubtfulAccounts" xlink:href="spi-20201231.xsd#AccountsReceivableNetDetails-AllowanceForDoubtfulAccounts" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/AccountsReceivableNetDetailsNarrative" xlink:href="spi-20201231.xsd#AccountsReceivableNetDetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/InventoriesNetDetails" xlink:href="spi-20201231.xsd#InventoriesNetDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/InventoriesNetDetailsNarrative" xlink:href="spi-20201231.xsd#InventoriesNetDetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/ProjectAssetsNetDetails" xlink:href="spi-20201231.xsd#ProjectAssetsNetDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/ProjectAssetsNetDetailsNarrative" xlink:href="spi-20201231.xsd#ProjectAssetsNetDetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/PrepaidExpensesAndOtherCurrentAssetsNetDetails" xlink:href="spi-20201231.xsd#PrepaidExpensesAndOtherCurrentAssetsNetDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/PrepaidExpensesAndOtherCurrentAssetsNetDetailsNarrative" xlink:href="spi-20201231.xsd#PrepaidExpensesAndOtherCurrentAssetsNetDetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/IntangibleAssetsNetDetails-IntangibleAssets" xlink:href="spi-20201231.xsd#IntangibleAssetsNetDetails-IntangibleAssets" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/IntangibleAssetsNetDetails-FutureAmortization" xlink:href="spi-20201231.xsd#IntangibleAssetsNetDetails-FutureAmortization" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/IntangibleAssetsNetDetailsNarrative" xlink:href="spi-20201231.xsd#IntangibleAssetsNetDetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/PropertyPlantAndEquipmentNetDetails" xlink:href="spi-20201231.xsd#PropertyPlantAndEquipmentNetDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/PropertyPlantAndEquipmentNetDetailsNarrative" xlink:href="spi-20201231.xsd#PropertyPlantAndEquipmentNetDetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/FairValueMeasurementDetails-IliadAndStreetervilleCapital" xlink:href="spi-20201231.xsd#FairValueMeasurementDetails-IliadAndStreetervilleCapital" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/FairValueMeasurementDetails-Warrants" xlink:href="spi-20201231.xsd#FairValueMeasurementDetails-Warrants" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/FairValueMeasurementDetailsNarrative" xlink:href="spi-20201231.xsd#FairValueMeasurementDetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/AccruedLiabilitiesDetails" xlink:href="spi-20201231.xsd#AccruedLiabilitiesDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/Short-termBorrowingsAndLong-termBorrowingsDetails-Debt" xlink:href="spi-20201231.xsd#Short-termBorrowingsAndLong-termBorrowingsDetails-Debt" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/Short-termBorrowingsAndLong-termBorrowingsDetails-Maturities" xlink:href="spi-20201231.xsd#Short-termBorrowingsAndLong-termBorrowingsDetails-Maturities" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/Short-termBorrowingsAndLong-termBorrowingsDetailsNarrative" xlink:href="spi-20201231.xsd#Short-termBorrowingsAndLong-termBorrowingsDetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/ConvertibleBondsDetails" xlink:href="spi-20201231.xsd#ConvertibleBondsDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/ConvertibleBondsDetailsNarrative" xlink:href="spi-20201231.xsd#ConvertibleBondsDetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/AmountDueToAffiliateDetails" xlink:href="spi-20201231.xsd#AmountDueToAffiliateDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/AmountDueToAffiliateDetailsNarrative" xlink:href="spi-20201231.xsd#AmountDueToAffiliateDetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/OrdinarySharesDetailsNarrative" xlink:href="spi-20201231.xsd#OrdinarySharesDetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/NoncontrollingInterestsDetailsNarrative" xlink:href="spi-20201231.xsd#NoncontrollingInterestsDetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/Share-basedCompensationDetails-Stock-basedCompensationExpenseByAwardType" xlink:href="spi-20201231.xsd#Share-basedCompensationDetails-Stock-basedCompensationExpenseByAwardType" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/Share-basedCompensationDetails-CompensationExpenseByLineItem" xlink:href="spi-20201231.xsd#Share-basedCompensationDetails-CompensationExpenseByLineItem" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/Share-basedCompensationDetails-Assumptions" xlink:href="spi-20201231.xsd#Share-basedCompensationDetails-Assumptions" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/Share-basedCompensationDetails-OptionActivity" xlink:href="spi-20201231.xsd#Share-basedCompensationDetails-OptionActivity" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/Share-basedCompensationDetails-OptionsByExercisePrice" xlink:href="spi-20201231.xsd#Share-basedCompensationDetails-OptionsByExercisePrice" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/Share-basedCompensationDetails-Rsus" xlink:href="spi-20201231.xsd#Share-basedCompensationDetails-Rsus" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/Share-basedCompensationDetails-Non-vestedOptions" xlink:href="spi-20201231.xsd#Share-basedCompensationDetails-Non-vestedOptions" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/Share-basedCompensationDetailsNarrative" xlink:href="spi-20201231.xsd#Share-basedCompensationDetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/IncomeTaxesDetails-LossBeforeProvision" xlink:href="spi-20201231.xsd#IncomeTaxesDetails-LossBeforeProvision" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/IncomeTaxesDetails-ProvisionForIncomeTaxes" xlink:href="spi-20201231.xsd#IncomeTaxesDetails-ProvisionForIncomeTaxes" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/IncomeTaxesDetails-TaxReconciliation" xlink:href="spi-20201231.xsd#IncomeTaxesDetails-TaxReconciliation" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/IncomeTaxesDetails-DeferredIncomeTaxes" xlink:href="spi-20201231.xsd#IncomeTaxesDetails-DeferredIncomeTaxes" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/IncomeTaxesDetailsNarrative" xlink:href="spi-20201231.xsd#IncomeTaxesDetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/NetLossPerShareDetails-BasicAndDiluted" xlink:href="spi-20201231.xsd#NetLossPerShareDetails-BasicAndDiluted" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/NetLossPerShareDetails-AntidilutiveShares" xlink:href="spi-20201231.xsd#NetLossPerShareDetails-AntidilutiveShares" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/LeasesDetails-MaturityOfLeaseLiabilities" xlink:href="spi-20201231.xsd#LeasesDetails-MaturityOfLeaseLiabilities" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/LeasesDetails-SupplementalInformationRelatedToOperatingLeases" xlink:href="spi-20201231.xsd#LeasesDetails-SupplementalInformationRelatedToOperatingLeases" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/LeasesDetailsNarrative" xlink:href="spi-20201231.xsd#LeasesDetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/CommitmentsAndContingenciesDetailsNarrative" xlink:href="spi-20201231.xsd#CommitmentsAndContingenciesDetailsNarrative" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/ConcentrationRiskDetails" xlink:href="spi-20201231.xsd#ConcentrationRiskDetails" xlink:type="simple"/>
<link:roleRef roleURI="http://spisolar.com/role/RelatedPartyTransactionsDetailsNarrative" xlink:href="spi-20201231.xsd#RelatedPartyTransactionsDetailsNarrative" 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://spisolar.com/role/DocumentAndEntityInformation" xlink:title="00000001 - Document - Document and Entity Information"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/StatementConsolidatedBalanceSheets" xlink:title="00000002 - Statement - CONSOLIDATED BALANCE SHEETS"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:title="00000003 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ConsolidatedStatementsOfOperations" xlink:title="00000004 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/StatementConsolidatedStatementsOfComprehensiveLoss" xlink:title="00000005 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE LOSS"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ConsolidatedStatementsOfEquityDeficit" xlink:title="00000006 - Statement - CONSOLIDATED STATEMENTS OF EQUITY (DEFICIT)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaapCommonStockMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityComponentDomain" xlink:to="loc_us-gaapCommonStockMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="loc_us-gaapAdditionalPaidInCapitalMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityComponentDomain" xlink:to="loc_us-gaapAdditionalPaidInCapitalMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaapRetainedEarningsMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityComponentDomain" xlink:to="loc_us-gaapRetainedEarningsMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ComprehensiveIncomeMember" xlink:label="loc_us-gaapComprehensiveIncomeMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityComponentDomain" xlink:to="loc_us-gaapComprehensiveIncomeMember_30" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ParentMember" xlink:label="loc_us-gaapParentMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityComponentDomain" xlink:to="loc_us-gaapParentMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaapOtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax_80" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance" xlink:label="loc_us-gaapNoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapNoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance_80" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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="7"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_IssuanceOfOrdinarySharesInOffering" xlink:label="loc_spiIssuanceOfOrdinarySharesInOffering_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiIssuanceOfOrdinarySharesInOffering_80" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_IssuanceOfOrdinarySharesInOfferingInShares" xlink:label="loc_spiIssuanceOfOrdinarySharesInOfferingInShares_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiIssuanceOfOrdinarySharesInOfferingInShares_80" xlink:type="arc" order="9"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_RedemptionOfConvertibleBondToOrdinaryShares" xlink:label="loc_spiRedemptionOfConvertibleBondToOrdinaryShares_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiRedemptionOfConvertibleBondToOrdinaryShares_80" xlink:type="arc" order="10"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_RedemptionOfConvertibleBondToOrdinarySharesInShares" xlink:label="loc_spiRedemptionOfConvertibleBondToOrdinarySharesInShares_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiRedemptionOfConvertibleBondToOrdinarySharesInShares_80" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToMinorityShareholders" xlink:label="loc_us-gaapPaymentsToMinorityShareholders_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapPaymentsToMinorityShareholders_80" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_DispositionOfSpiChinaHkLimited" xlink:label="loc_spiDispositionOfSpiChinaHkLimited_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiDispositionOfSpiChinaHkLimited_80" xlink:type="arc" order="13"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_StockOptionGrantedInDisposition" xlink:label="loc_spiStockOptionGrantedInDisposition_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiStockOptionGrantedInDisposition_80" xlink:type="arc" order="14"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ForgivenessOfReceivableFromSpiChinaHkLimited" xlink:label="loc_spiForgivenessOfReceivableFromSpiChinaHkLimited_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiForgivenessOfReceivableFromSpiChinaHkLimited_80" xlink:type="arc" order="15"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ForgivenessOfPayableToSpiChinaHkLimited" xlink:label="loc_spiForgivenessOfPayableToSpiChinaHkLimited_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiForgivenessOfPayableToSpiChinaHkLimited_80" xlink:type="arc" order="16"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueNewIssues" xlink:label="loc_us-gaapStockIssuedDuringPeriodValueNewIssues_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodValueNewIssues_80" xlink:type="arc" order="17"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:label="loc_us-gaapStockIssuedDuringPeriodSharesNewIssues_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodSharesNewIssues_80" xlink:type="arc" order="18"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised" xlink:label="loc_us-gaapStockIssuedDuringPeriodValueStockOptionsExercised_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodValueStockOptionsExercised_80" xlink:type="arc" order="19"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:label="loc_us-gaapStockIssuedDuringPeriodSharesStockOptionsExercised_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodSharesStockOptionsExercised_80" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:label="loc_us-gaapAdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_80" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation" xlink:label="loc_us-gaapStockIssuedDuringPeriodSharesShareBasedCompensation_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodSharesShareBasedCompensation_80" xlink:type="arc" order="22"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ReverseStockSplitRoundingSharesAmount" xlink:label="loc_spiReverseStockSplitRoundingSharesAmount_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiReverseStockSplitRoundingSharesAmount_80" xlink:type="arc" order="23"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesReverseStockSplits" xlink:label="loc_us-gaapStockIssuedDuringPeriodSharesReverseStockSplits_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodSharesReverseStockSplits_80" xlink:type="arc" order="24"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ConsolidatedStatementsOfCashFlows" xlink:title="00000007 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ReconciliationOfCash" xlink:title="00000008 - Statement - Reconciliation of Cash"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/DescriptionOfBusinessAndOrganization" xlink:title="00000009 - Disclosure - 1. Description of Business and Organization"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/LiquidityCondition" xlink:title="00000010 - Disclosure - 2. Liquidity Condition"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/SummaryOfSignificantAccountingPolicies" xlink:title="00000011 - Disclosure - 3. Summary of Significant Accounting Policies"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Disposition" xlink:title="00000012 - Disclosure - 4. Disposition"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/BusinessAcquisitions" xlink:title="00000013 - Disclosure - 5. Acquisitions"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AccountsReceivableNet" xlink:title="00000014 - Disclosure - 6. Accounts Receivable, net"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/InventoriesNet" xlink:title="00000015 - Disclosure - 7. Inventories, net"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ProjectAssets" xlink:title="00000016 - Disclosure - 8. Project Assets, net"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/PrepaidExpensesAndOtherCurrentAssets" xlink:title="00000017 - Disclosure - 9. Prepaid Expenses and Other Current Assets, net"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IntangibleAssetsNet" xlink:title="00000018 - Disclosure - 10. Intangible Assets, net"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/PropertyPlantAndEquipmentNet" xlink:title="00000019 - Disclosure - 11. Property, Plant and Equipment, net"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/FairValueMeasurement" xlink:title="00000020 - Disclosure - 12. Fair Value Measurement"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AccruedLiabilities" xlink:title="00000021 - Disclosure - 13. Accrued Liabilities"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Short-termBorrowingsAndLong-termBorrowings" xlink:title="00000022 - Disclosure - 14. Short-term Borrowings and Long-term Borrowings"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ConvertibleBonds" xlink:title="00000023 - Disclosure - 15. Convertible Bonds"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AmountDueToAffiliate" xlink:title="00000024 - Disclosure - 16. Amount Due to an Affiliate"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/OrdinaryShares" xlink:title="00000025 - Disclosure - 17. Ordinary Shares"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/NoncontrollingInterests" xlink:title="00000026 - Disclosure - 18. Noncontrolling Interests"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Share-basedCompensation" xlink:title="00000027 - Disclosure - 19. Share-based Compensation"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IncomeTaxes" xlink:title="00000028 - Disclosure - 20. Income Taxes"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/NetLossPerShare" xlink:title="00000029 - Disclosure - 21. Net Loss Per Share"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Leases" xlink:title="00000030 - Disclosure - 22. Leases"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/CommitmentsAndContingencies" xlink:title="00000031 - Disclosure - 23. Commitments and Contingencies"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ConcentrationRisk" xlink:title="00000032 - Disclosure - 24. Concentration Risk"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/RelatedPartyTransactions" xlink:title="00000033 - Disclosure - 25. Related Party Transactions"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/SubsequentEvents" xlink:title="00000034 - Disclosure - 26. Subsequent Events"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:title="00000035 - Disclosure - 3. Summary of Significant Accounting Policies (Policies)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/DescriptionOfBusinessAndOrganizationTables" xlink:title="00000036 - Disclosure - 1. Description of Business and Organization (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:title="00000037 - Disclosure - 3. Summary of Significant Accounting Policies (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/DispositionTables" xlink:title="00000038 - Disclosure - 4. Disposition (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AcquisitionsTables" xlink:title="00000039 - Disclosure - 5. Acquisitions (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AccountsReceivableNetTables" xlink:title="00000040 - Disclosure - 6. Accounts Receivable, net (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/InventoriesNetTables" xlink:title="00000041 - Disclosure - 7. Inventories, net (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ProjectAssetsNetTables" xlink:title="00000042 - Disclosure - 8. Project Assets, net (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/PrepaidExpensesAndOtherCurrentAssetsNetTables" xlink:title="00000043 - Disclosure - 9. Prepaid Expenses and Other Current Assets, net (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IntangibleAssetsNetTables" xlink:title="00000044 - Disclosure - 10. Intangible Assets, net (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/PropertyPlantAndEquipmentNetTables" xlink:title="00000045 - Disclosure - 11. Property, Plant and Equipment, net (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/FairValueMeasurementTables" xlink:title="00000046 - Disclosure - 12. Fair Value Measurement (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AccruedLiabilitiesTables" xlink:title="00000047 - Disclosure - 13. Accrued Liabilities (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Short-termBorrowingsAndLong-termBorrowingsTables" xlink:title="00000048 - Disclosure - 14. Short-term Borrowings and Long-term Borrowings (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ConvertibleBondsTables" xlink:title="00000049 - Disclosure - 15. Convertible Bonds (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AmountDueToAffiliateTables" xlink:title="00000050 - Disclosure - 16. Amount Due to an Affiliate (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Share-basedCompensationTables" xlink:title="00000051 - Disclosure - 19. Share-based Compensation (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IncomeTaxesTables" xlink:title="00000052 - Disclosure - 20. Income Taxes (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/NetLossPerShareTables" xlink:title="00000053 - Disclosure - 21. Net Loss Per Share (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/LeasesTables" xlink:title="00000054 - Disclosure - 22. Leases (Tables)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/DescriptionOfBusinessAndOrganizationDetailsNarrative" xlink:title="00000055 - Disclosure - 1. Description of Business and Organization (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/srt-2020-01-31.xsd#srt_CounterpartyNameAxis" xlink:label="loc_srtCounterpartyNameAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtCounterpartyNameAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_SinsinRenewableInvestmentLimitedMember" xlink:label="loc_spiSinsinRenewableInvestmentLimitedMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiSinsinRenewableInvestmentLimitedMember_30" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures" xlink:label="loc_us-gaapInvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapInvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures_80" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairmentOfInvestments" xlink:label="loc_us-gaapImpairmentOfInvestments_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapImpairmentOfInvestments_80" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ConsiderationPayable" xlink:label="loc_spiConsiderationPayable_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiConsiderationPayable_80" xlink:type="arc" order="2"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/GoingConcernDetailsNarrative" xlink:title="00000056 - Disclosure - 2. Going Concern (Details Narrative)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesDetails-PpeUsefulLives" xlink:title="00000057 - Disclosure - 3. Summary of Significant Accounting Policies (Details - PPE useful lives)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaapPropertyPlantAndEquipmentLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaapScheduleOfPropertyPlantAndEquipmentTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapPropertyPlantAndEquipmentLineItems" xlink:to="loc_us-gaapScheduleOfPropertyPlantAndEquipmentTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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-gaapScheduleOfPropertyPlantAndEquipmentTable" xlink:to="loc_us-gaapPropertyPlantAndEquipmentByTypeAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AutomobilesMember" xlink:label="loc_us-gaapAutomobilesMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_us-gaapAutomobilesMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LeaseholdImprovementsMember" xlink:label="loc_us-gaapLeaseholdImprovementsMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_us-gaapLeaseholdImprovementsMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_PvSolarSystemMember" xlink:label="loc_spiPvSolarSystemMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_spiPvSolarSystemMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_BitcoinMiningEquipmentMember" xlink:label="loc_spiBitcoinMiningEquipmentMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_spiBitcoinMiningEquipmentMember_30" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FurnitureAndFixturesMember" xlink:label="loc_us-gaapFurnitureAndFixturesMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_us-gaapFurnitureAndFixturesMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentEstimatedUsefulLives" xlink:label="loc_us-gaapPropertyPlantAndEquipmentEstimatedUsefulLives_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentLineItems" xlink:to="loc_us-gaapPropertyPlantAndEquipmentEstimatedUsefulLives_60" xlink:type="arc" order="0"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesDetails-DisaggregationOfRevenueByRevenueStream" xlink:title="00000058 - Disclosure - 3. Summary of Significant Accounting Policies (Details - Disaggregation of revenue by revenue stream)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/srt-2020-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srtProductOrServiceAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtProductOrServiceAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srtProductsAndServicesDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtProductOrServiceAxis" xlink:to="loc_srtProductsAndServicesDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srtProductsAndServicesDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtProductOrServiceAxis" xlink:to="loc_srtProductsAndServicesDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_PowerPurchaseAgreementsPPAMember" xlink:label="loc_spiPowerPurchaseAgreementsPPAMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPowerPurchaseAgreementsPPAMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_OtherServicesMember" xlink:label="loc_spiOtherServicesMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiOtherServicesMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_PredevelopmentProjectSalesMember" xlink:label="loc_spiPredevelopmentProjectSalesMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPredevelopmentProjectSalesMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_PhotoVoltaicSolarComponentsMember" xlink:label="loc_spiPhotoVoltaicSolarComponentsMember_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPhotoVoltaicSolarComponentsMember_80" xlink:type="arc" order="81"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_PhotoVoltaicProjectAssetsMember" xlink:label="loc_spiPhotoVoltaicProjectAssetsMember_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPhotoVoltaicProjectAssetsMember_100" xlink:type="arc" order="101"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_PvProjectAssetsAndPredevelopmentSolarProjectsMember" xlink:label="loc_spiPvProjectAssetsAndPredevelopmentSolarProjectsMember_190"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPvProjectAssetsAndPredevelopmentSolarProjectsMember_190" xlink:type="arc" order="191"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srtStatementGeographicalAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtStatementGeographicalAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srtSegmentGeographicalDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtStatementGeographicalAxis" xlink:to="loc_srtSegmentGeographicalDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srtSegmentGeographicalDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtStatementGeographicalAxis" xlink:to="loc_srtSegmentGeographicalDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_JP" xlink:label="loc_countryJP_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryJP_0" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_IT" xlink:label="loc_countryIT_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryIT_10" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_AU" xlink:label="loc_countryAU_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryAU_30" xlink:type="arc" order="32"/>
<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_GR" xlink:label="loc_countryGR_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryGR_40" xlink:type="arc" order="42"/>
<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_GB" xlink:label="loc_countryGB_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryGB_50" xlink:type="arc" order="52"/>
<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_US" xlink:label="loc_countryUS_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryUS_60" xlink:type="arc" order="62"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaapRevenues_1300"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapRevenues_1300" xlink:type="arc" order="0"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesDetails-ContractBalance" xlink:title="00000059 - Disclosure - 3. Summary of Significant Accounting Policies (Details - Contract balance)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/DisclosureSummaryOfSignificantAccountingPoliciesCapitalizedInterestDetails" xlink:title="00000060 - Disclosure - 3. Summary of Significant Accounting Policies (Details - Capitalized interest)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/SummaryOfSignificantAccountingPoliciesDetailsNarrative" xlink:title="00000061 - Disclosure - 3. Summary of Significant Accounting Policies (Details Narrative)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/DispositionDetails-StatementOfOperation" xlink:title="00000062 - Disclosure - 4. Disposition (Details - Statement of operation)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisposalGroupClassificationAxis" xlink:label="loc_us-gaapDisposalGroupClassificationAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapDisposalGroupClassificationAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaapDisposalGroupClassificationDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapDisposalGroupClassificationAxis" xlink:to="loc_us-gaapDisposalGroupClassificationDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaapDisposalGroupClassificationDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapDisposalGroupClassificationAxis" xlink:to="loc_us-gaapDisposalGroupClassificationDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_SPIChinaMember" xlink:label="loc_spiSPIChinaMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDisposalGroupClassificationDomain" xlink:to="loc_spiSPIChinaMember_0" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementOperatingActivitiesSegmentAxis" xlink:label="loc_us-gaapStatementOperatingActivitiesSegmentAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapStatementOperatingActivitiesSegmentAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentOperatingActivitiesDomain" xlink:label="loc_us-gaapSegmentOperatingActivitiesDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapStatementOperatingActivitiesSegmentAxis" xlink:to="loc_us-gaapSegmentOperatingActivitiesDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentOperatingActivitiesDomain" xlink:label="loc_us-gaapSegmentOperatingActivitiesDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementOperatingActivitiesSegmentAxis" xlink:to="loc_us-gaapSegmentOperatingActivitiesDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDiscontinuedOperationsMember" xlink:label="loc_us-gaapSegmentDiscontinuedOperationsMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSegmentOperatingActivitiesDomain" xlink:to="loc_us-gaapSegmentDiscontinuedOperationsMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationRevenue" xlink:label="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationRevenue_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationRevenue_70" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold" xlink:label="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationCostsOfGoodsSold_70" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationGrossProfitLoss" xlink:label="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationGrossProfitLoss_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationGrossProfitLoss_70" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationGeneralAndAdministrativeExpense" xlink:label="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationGeneralAndAdministrativeExpense_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDisposalGroupIncludingDiscontinuedOperationGeneralAndAdministrativeExpense_70" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_DisposalGroupIncludingDiscontinuedOperationSalesAndMarketingExpense" xlink:label="loc_spiDisposalGroupIncludingDiscontinuedOperationSalesAndMarketingExpense_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiDisposalGroupIncludingDiscontinuedOperationSalesAndMarketingExpense_70" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_DisposalGroupIncludingDiscontinuedOperationProvisionForDoubtfulAccounts" xlink:label="loc_spiDisposalGroupIncludingDiscontinuedOperationProvisionForDoubtfulAccounts_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiDisposalGroupIncludingDiscontinuedOperationProvisionForDoubtfulAccounts_70" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_DisposalGroupIncludingDiscontinuedOperationOperatingExpenses" xlink:label="loc_spiDisposalGroupIncludingDiscontinuedOperationOperatingExpenses_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiDisposalGroupIncludingDiscontinuedOperationOperatingExpenses_70" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_DisposalGroupIncludingDiscontinuedOperationOtherIncomeExpense" xlink:label="loc_spiDisposalGroupIncludingDiscontinuedOperationOtherIncomeExpense_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiDisposalGroupIncludingDiscontinuedOperationOtherIncomeExpense_70" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax" xlink:label="loc_us-gaapDiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDiscontinuedOperationIncomeLossFromDiscontinuedOperationBeforeIncomeTax_70" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DiscontinuedOperationTaxEffectOfDiscontinuedOperation" xlink:label="loc_us-gaapDiscontinuedOperationTaxEffectOfDiscontinuedOperation_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDiscontinuedOperationTaxEffectOfDiscontinuedOperation_70" xlink:type="arc" order="9"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTax" xlink:label="loc_us-gaapIncomeLossFromDiscontinuedOperationsNetOfTax_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapIncomeLossFromDiscontinuedOperationsNetOfTax_70" xlink:type="arc" order="10"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/DispositionDetailsNarrative" xlink:title="00000063 - Disclosure - 4. Disposition (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisposalGroupClassificationAxis" xlink:label="loc_us-gaapDisposalGroupClassificationAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapDisposalGroupClassificationAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaapDisposalGroupClassificationDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapDisposalGroupClassificationAxis" xlink:to="loc_us-gaapDisposalGroupClassificationDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaapDisposalGroupClassificationDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapDisposalGroupClassificationAxis" xlink:to="loc_us-gaapDisposalGroupClassificationDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_SPIChinaMember" xlink:label="loc_spiSPIChinaMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapDisposalGroupClassificationDomain" xlink:to="loc_spiSPIChinaMember_30" xlink:type="arc" order="32"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementOperatingActivitiesSegmentAxis" xlink:label="loc_us-gaapStatementOperatingActivitiesSegmentAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapStatementOperatingActivitiesSegmentAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentOperatingActivitiesDomain" xlink:label="loc_us-gaapSegmentOperatingActivitiesDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapStatementOperatingActivitiesSegmentAxis" xlink:to="loc_us-gaapSegmentOperatingActivitiesDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentOperatingActivitiesDomain" xlink:label="loc_us-gaapSegmentOperatingActivitiesDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementOperatingActivitiesSegmentAxis" xlink:to="loc_us-gaapSegmentOperatingActivitiesDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDiscontinuedOperationsMember" xlink:label="loc_us-gaapSegmentDiscontinuedOperationsMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSegmentOperatingActivitiesDomain" xlink:to="loc_us-gaapSegmentDiscontinuedOperationsMember_30" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CounterpartyNameAxis" xlink:label="loc_srtCounterpartyNameAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtCounterpartyNameAxis" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_SRIIMember" xlink:label="loc_spiSRIIMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiSRIIMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_SRVMember" xlink:label="loc_spiSRVMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiSRVMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_LightingCharmMember" xlink:label="loc_spiLightingCharmMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiLightingCharmMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_SRIMember" xlink:label="loc_spiSRIMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiSRIMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalOther" xlink:label="loc_us-gaapAdjustmentsToAdditionalPaidInCapitalOther_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAdjustmentsToAdditionalPaidInCapitalOther_60" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriod_60" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_FairValueOfOptionsGranted" xlink:label="loc_spiFairValueOfOptionsGranted_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiFairValueOfOptionsGranted_60" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_LossOnDebtForgiveness" xlink:label="loc_spiLossOnDebtForgiveness_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiLossOnDebtForgiveness_60" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOrSaleOfEquity" xlink:label="loc_us-gaapProceedsFromIssuanceOrSaleOfEquity_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapProceedsFromIssuanceOrSaleOfEquity_60" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainLossOnDispositionOfAssets1" xlink:label="loc_us-gaapGainLossOnDispositionOfAssets1_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapGainLossOnDispositionOfAssets1_60" xlink:type="arc" order="5"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AcquisitionsDetails-AllocationOfPurchasePrice" xlink:title="00000064 - Disclosure - 5. Acquisitions (Details - Allocation of purchase price)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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="spi-20201231.xsd#spi_PhoenixMember" xlink:label="loc_spiPhoenixMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:to="loc_spiPhoenixMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ThermiSunSAMember" xlink:label="loc_spiThermiSunSAMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:to="loc_spiThermiSunSAMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_HeliohrisiSAMember" xlink:label="loc_spiHeliohrisiSAMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:to="loc_spiHeliohrisiSAMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_90" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_90" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_90" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_90" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_90" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInventory" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInventory_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_90" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInventory_90" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_90" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_90" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIndefiniteLivedIntangibleAssets" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIndefiniteLivedIntangibleAssets_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_90" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIndefiniteLivedIntangibleAssets_90" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_90" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsPrepaidExpenseAndOtherAssets_90" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_90" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_90" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_90" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_90" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_90" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities_90" xlink:type="arc" order="9"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesLongTermDebt" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesLongTermDebt_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_90" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesLongTermDebt_90" xlink:type="arc" order="10"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_90" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_90" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaapBusinessCombinationConsiderationTransferred1_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_90" xlink:to="loc_us-gaapBusinessCombinationConsiderationTransferred1_90" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaapGoodwill_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNetAbstract_90" xlink:to="loc_us-gaapGoodwill_90" xlink:type="arc" order="13"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AcquisitionsDetailsNarrative" xlink:title="00000065 - Disclosure - 5. Acquisitions (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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="spi-20201231.xsd#spi_PhoenixMember" xlink:label="loc_spiPhoenixMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:to="loc_spiPhoenixMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ThermiSunSAMember" xlink:label="loc_spiThermiSunSAMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:to="loc_spiThermiSunSAMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_HeliohrisiSAMember" xlink:label="loc_spiHeliohrisiSAMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:to="loc_spiHeliohrisiSAMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaapBusinessCombinationConsiderationTransferred1_120"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapBusinessCombinationConsiderationTransferred1_120" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesGross" xlink:label="loc_us-gaapPaymentsToAcquireBusinessesGross_120"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapPaymentsToAcquireBusinessesGross_120" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesAcquisitions" xlink:label="loc_us-gaapStockIssuedDuringPeriodSharesAcquisitions_120"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodSharesAcquisitions_120" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_StockToBeIssuedDuringPeriodSharesAcquisitions" xlink:label="loc_spiStockToBeIssuedDuringPeriodSharesAcquisitions_120"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiStockToBeIssuedDuringPeriodSharesAcquisitions_120" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_StockToBeIssuedForEmployeeIncentivePlanShares" xlink:label="loc_spiStockToBeIssuedForEmployeeIncentivePlanShares_120"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiStockToBeIssuedForEmployeeIncentivePlanShares_120" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaapRevenues_120"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapRevenues_120" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaapNetIncomeLoss_120"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapNetIncomeLoss_120" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaapGoodwill_120"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapGoodwill_120" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet" xlink:label="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_120"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapBusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_120" xlink:type="arc" order="8"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AccountsReceivableNetDetails-AccountsReceivable" xlink:title="00000066 - Disclosure - 6. Accounts Receivable, net (Details - Accounts receivable)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AccountsReceivableNetDetails-AllowanceForDoubtfulAccounts" xlink:title="00000067 - Disclosure - 6. Accounts Receivable, net (Details - Allowance for Doubtful Accounts)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AccountsReceivableNetDetailsNarrative" xlink:title="00000068 - Disclosure - 6. Accounts Receivable, net (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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="spi-20201231.xsd#spi_SolarJuiceMember" xlink:label="loc_spiSolarJuiceMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSegmentDomain" xlink:to="loc_spiSolarJuiceMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_AccountsReceivablePledged" xlink:label="loc_spiAccountsReceivablePledged_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiAccountsReceivablePledged_30" xlink:type="arc" order="0"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/InventoriesNetDetails" xlink:title="00000069 - Disclosure - 7. Inventories, net (Details)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/InventoriesNetDetailsNarrative" xlink:title="00000070 - Disclosure - 7. Inventories, net (Details Narrative)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ProjectAssetsNetDetails" xlink:title="00000071 - Disclosure - 8. Project Assets, net (Details)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongLivedAssetsHeldForSaleByAssetTypeAxis" xlink:label="loc_us-gaapLongLivedAssetsHeldForSaleByAssetTypeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapLongLivedAssetsHeldForSaleByAssetTypeAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongLivedAssetsHeldForSaleNameDomain" xlink:label="loc_us-gaapLongLivedAssetsHeldForSaleNameDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapLongLivedAssetsHeldForSaleByAssetTypeAxis" xlink:to="loc_us-gaapLongLivedAssetsHeldForSaleNameDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongLivedAssetsHeldForSaleNameDomain" xlink:label="loc_us-gaapLongLivedAssetsHeldForSaleNameDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapLongLivedAssetsHeldForSaleByAssetTypeAxis" xlink:to="loc_us-gaapLongLivedAssetsHeldForSaleNameDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_CompletedForSaleMember" xlink:label="loc_spiCompletedForSaleMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongLivedAssetsHeldForSaleNameDomain" xlink:to="loc_spiCompletedForSaleMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_UnderDevelopmentMember" xlink:label="loc_spiUnderDevelopmentMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongLivedAssetsHeldForSaleNameDomain" xlink:to="loc_spiUnderDevelopmentMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ProjectAssets" xlink:label="loc_spiProjectAssets_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiProjectAssets_70" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ProjectAssetsCurrent" xlink:label="loc_spiProjectAssetsCurrent_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiProjectAssetsCurrent_70" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ProjectAssetsNoncurrent" xlink:label="loc_spiProjectAssetsNoncurrent_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiProjectAssetsNoncurrent_70" xlink:type="arc" order="2"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ProjectAssetsNetDetailsNarrative" xlink:title="00000072 - Disclosure - 8. Project Assets, net (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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="spi-20201231.xsd#spi_CertainAssetsMember" xlink:label="loc_spiCertainAssetsMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSubsegmentsDomain" xlink:to="loc_spiCertainAssetsMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srtProductOrServiceAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtProductOrServiceAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srtProductsAndServicesDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtProductOrServiceAxis" xlink:to="loc_srtProductsAndServicesDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srtProductsAndServicesDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtProductOrServiceAxis" xlink:to="loc_srtProductsAndServicesDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_PowerPurchaseAgreementsPPAMember" xlink:label="loc_spiPowerPurchaseAgreementsPPAMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPowerPurchaseAgreementsPPAMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_OtherServicesMember" xlink:label="loc_spiOtherServicesMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiOtherServicesMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_PredevelopmentProjectSalesMember" xlink:label="loc_spiPredevelopmentProjectSalesMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPredevelopmentProjectSalesMember_30" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_PhotoVoltaicProjectAssetsMember" xlink:label="loc_spiPhotoVoltaicProjectAssetsMember_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPhotoVoltaicProjectAssetsMember_100" xlink:type="arc" order="101"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_PhotoVoltaicSolarComponentsMember" xlink:label="loc_spiPhotoVoltaicSolarComponentsMember_110"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPhotoVoltaicSolarComponentsMember_110" xlink:type="arc" order="111"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_PvProjectAssetsAndPredevelopmentSolarProjectsMember" xlink:label="loc_spiPvProjectAssetsAndPredevelopmentSolarProjectsMember_220"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtProductsAndServicesDomain" xlink:to="loc_spiPvProjectAssetsAndPredevelopmentSolarProjectsMember_220" xlink:type="arc" order="221"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srtStatementGeographicalAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtStatementGeographicalAxis" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srtSegmentGeographicalDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtStatementGeographicalAxis" xlink:to="loc_srtSegmentGeographicalDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srtSegmentGeographicalDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtStatementGeographicalAxis" xlink:to="loc_srtSegmentGeographicalDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_AU" xlink:label="loc_countryAU_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryAU_0" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_JP" xlink:label="loc_countryJP_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryJP_10" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_GR" xlink:label="loc_countryGR_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryGR_30" xlink:type="arc" order="32"/>
<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_GB" xlink:label="loc_countryGB_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryGB_50" xlink:type="arc" order="52"/>
<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_US" xlink:label="loc_countryUS_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryUS_60" xlink:type="arc" order="62"/>
<link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_IT" xlink:label="loc_countryIT_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtSegmentGeographicalDomain" xlink:to="loc_countryIT_70" xlink:type="arc" order="72"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairmentOfOngoingProject" xlink:label="loc_us-gaapImpairmentOfOngoingProject_1330"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapImpairmentOfOngoingProject_1330" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaapRevenues_1330"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapRevenues_1330" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CostOfRevenue" xlink:label="loc_us-gaapCostOfRevenue_1330"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapCostOfRevenue_1330" xlink:type="arc" order="2"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/PrepaidExpensesAndOtherCurrentAssetsNetDetails" xlink:title="00000073 - Disclosure - 9. Prepaid expenses and other current assets, net (Details)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/PrepaidExpensesAndOtherCurrentAssetsNetDetailsNarrative" xlink:title="00000074 - Disclosure - 9. Prepaid expenses and other current assets, net (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CounterpartyNameAxis" xlink:label="loc_srtCounterpartyNameAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtCounterpartyNameAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ThirdPartiesMember" xlink:label="loc_spiThirdPartiesMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiThirdPartiesMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_TacooCorporationMember" xlink:label="loc_spiTacooCorporationMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiTacooCorporationMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ProvisionForDepositAndPrepaymentForAcquisitions" xlink:label="loc_spiProvisionForDepositAndPrepaymentForAcquisitions_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiProvisionForDepositAndPrepaymentForAcquisitions_70" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ProvisionForOtherDepositsAndPrepayments" xlink:label="loc_spiProvisionForOtherDepositsAndPrepayments_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiProvisionForOtherDepositsAndPrepayments_70" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ProvisionForOtherReceivables" xlink:label="loc_spiProvisionForOtherReceivables_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiProvisionForOtherReceivables_70" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherReceivablesNetCurrent" xlink:label="loc_us-gaapOtherReceivablesNetCurrent_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOtherReceivablesNetCurrent_70" xlink:type="arc" order="3"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IntangibleAssetsNetDetails-IntangibleAssets" xlink:title="00000075 - Disclosure - 10. Intangible Assets, net (Details - Intangible Assets)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaapFiniteLivedIntangibleAssetsLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaapScheduleOfFiniteLivedIntangibleAssetsTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsLineItems" xlink:to="loc_us-gaapScheduleOfFiniteLivedIntangibleAssetsTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaapFiniteLivedIntangibleAssetsByMajorClassAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapScheduleOfFiniteLivedIntangibleAssetsTable" xlink:to="loc_us-gaapFiniteLivedIntangibleAssetsByMajorClassAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaapFiniteLivedIntangibleAssetsMajorClassNameDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsByMajorClassAxis" xlink:to="loc_us-gaapFiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaapFiniteLivedIntangibleAssetsMajorClassNameDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsByMajorClassAxis" xlink:to="loc_us-gaapFiniteLivedIntangibleAssetsMajorClassNameDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PatentsMember" xlink:label="loc_us-gaapPatentsMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="loc_us-gaapPatentsMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaapCustomerRelationshipsMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="loc_us-gaapCustomerRelationshipsMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_TradenameMember" xlink:label="loc_spiTradenameMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="loc_spiTradenameMember_30" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_TechnologyMember" xlink:label="loc_spiTechnologyMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="loc_spiTechnologyMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_OtherMember" xlink:label="loc_spiOtherMember_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="loc_spiOtherMember_50" xlink:type="arc" order="51"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaapFiniteLivedIntangibleAssetUsefulLife_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsLineItems" xlink:to="loc_us-gaapFiniteLivedIntangibleAssetUsefulLife_170" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross" xlink:label="loc_us-gaapFiniteLivedIntangibleAssetsGross_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsLineItems" xlink:to="loc_us-gaapFiniteLivedIntangibleAssetsGross_170" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaapFiniteLivedIntangibleAssetsAccumulatedAmortization_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsLineItems" xlink:to="loc_us-gaapFiniteLivedIntangibleAssetsAccumulatedAmortization_170" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_FiniteLivedIntangibleAssetsImpairmentCharge" xlink:label="loc_spiFiniteLivedIntangibleAssetsImpairmentCharge_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsLineItems" xlink:to="loc_spiFiniteLivedIntangibleAssetsImpairmentCharge_170" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="loc_us-gaapFiniteLivedIntangibleAssetsNet_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsLineItems" xlink:to="loc_us-gaapFiniteLivedIntangibleAssetsNet_170" xlink:type="arc" order="4"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IntangibleAssetsNetDetails-FutureAmortization" xlink:title="00000076 - Disclosure - 10. Intangible Assets, net (Details - Future Amortization)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IntangibleAssetsNetDetailsNarrative" xlink:title="00000077 - Disclosure - 10. Intangible Assets, net (Details Narrative)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/PropertyPlantAndEquipmentNetDetails" xlink:title="00000078 - Disclosure - 11. Property, Plant and Equipment, net (Details)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaapPropertyPlantAndEquipmentLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaapScheduleOfPropertyPlantAndEquipmentTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapPropertyPlantAndEquipmentLineItems" xlink:to="loc_us-gaapScheduleOfPropertyPlantAndEquipmentTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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-gaapScheduleOfPropertyPlantAndEquipmentTable" xlink:to="loc_us-gaapPropertyPlantAndEquipmentByTypeAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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="spi-20201231.xsd#spi_BitcoinMiningEquipmentMember" xlink:label="loc_spiBitcoinMiningEquipmentMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_spiBitcoinMiningEquipmentMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_PVSolarSystemsMember" xlink:label="loc_spiPVSolarSystemsMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_spiPVSolarSystemsMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LeaseholdImprovementsMember" xlink:label="loc_us-gaapLeaseholdImprovementsMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_us-gaapLeaseholdImprovementsMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FurnitureAndFixturesMember" xlink:label="loc_us-gaapFurnitureAndFixturesMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_us-gaapFurnitureAndFixturesMember_30" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AutomobilesMember" xlink:label="loc_us-gaapAutomobilesMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_us-gaapAutomobilesMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_OtherItemsMember" xlink:label="loc_spiOtherItemsMember_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentTypeDomain" xlink:to="loc_spiOtherItemsMember_100" xlink:type="arc" order="101"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="loc_us-gaapPropertyPlantAndEquipmentGross_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentLineItems" xlink:to="loc_us-gaapPropertyPlantAndEquipmentGross_140" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaapAccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentLineItems" xlink:to="loc_us-gaapAccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_140" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_PropertyPlantAndEquipmentNetBeforeConstructionInProgressAndImpairment" xlink:label="loc_spiPropertyPlantAndEquipmentNetBeforeConstructionInProgressAndImpairment_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentLineItems" xlink:to="loc_spiPropertyPlantAndEquipmentNetBeforeConstructionInProgressAndImpairment_140" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_AccumulatedImpairmentOfPropertyPlantAndEquipment" xlink:label="loc_spiAccumulatedImpairmentOfPropertyPlantAndEquipment_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentLineItems" xlink:to="loc_spiAccumulatedImpairmentOfPropertyPlantAndEquipment_140" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaapPropertyPlantAndEquipmentNet_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapPropertyPlantAndEquipmentLineItems" xlink:to="loc_us-gaapPropertyPlantAndEquipmentNet_140" xlink:type="arc" order="4"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/PropertyPlantAndEquipmentNetDetailsNarrative" xlink:title="00000079 - Disclosure - 11. Property, Plant and Equipment, net (Details Narrative)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/FairValueMeasurementDetails-IliadAndStreetervilleCapital" xlink:title="00000080 - Disclosure - 12. Fair value measurement (Details - ILIAD and Streeterville Capital)">
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ScheduleOfFairValueMeasurementDetailsLineItems" xlink:label="loc_spiScheduleOfFairValueMeasurementDetailsLineItems"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ScheduleOfFairValueMeasurementDetailsTable" xlink:label="loc_spiScheduleOfFairValueMeasurementDetailsTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_spiScheduleOfFairValueMeasurementDetailsLineItems" xlink:to="loc_spiScheduleOfFairValueMeasurementDetailsTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByLiabilityClassAxis" xlink:label="loc_us-gaapFairValueByLiabilityClassAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_spiScheduleOfFairValueMeasurementDetailsTable" xlink:to="loc_us-gaapFairValueByLiabilityClassAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain" xlink:label="loc_us-gaapFairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapFairValueByLiabilityClassAxis" xlink:to="loc_us-gaapFairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain" xlink:label="loc_us-gaapFairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapFairValueByLiabilityClassAxis" xlink:to="loc_us-gaapFairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_DerivativeLiabilityMember" xlink:label="loc_spiDerivativeLiabilityMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain" xlink:to="loc_spiDerivativeLiabilityMember_0" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaapLongtermDebtTypeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_spiScheduleOfFairValueMeasurementDetailsTable" xlink:to="loc_us-gaapLongtermDebtTypeAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaapLongtermDebtTypeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapLongtermDebtTypeAxis" xlink:to="loc_us-gaapLongtermDebtTypeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaapLongtermDebtTypeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapLongtermDebtTypeAxis" xlink:to="loc_us-gaapLongtermDebtTypeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ILIADConvertibleBondMember" xlink:label="loc_spiILIADConvertibleBondMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongtermDebtTypeDomain" xlink:to="loc_spiILIADConvertibleBondMember_0" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_StreetervilleConvertibleBondMember" xlink:label="loc_spiStreetervilleConvertibleBondMember_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongtermDebtTypeDomain" xlink:to="loc_spiStreetervilleConvertibleBondMember_80" xlink:type="arc" order="83"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_spiScheduleOfFairValueMeasurementDetailsTable" xlink:to="loc_us-gaapMeasurementInputTypeAxis" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MeasurementInputExpectedTermMember" xlink:label="loc_us-gaapMeasurementInputExpectedTermMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapMeasurementInputTypeDomain" xlink:to="loc_us-gaapMeasurementInputExpectedTermMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MeasurementInputPriceVolatilityMember" xlink:label="loc_us-gaapMeasurementInputPriceVolatilityMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapMeasurementInputTypeDomain" xlink:to="loc_us-gaapMeasurementInputPriceVolatilityMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MeasurementInputRiskFreeInterestRateMember" xlink:label="loc_us-gaapMeasurementInputRiskFreeInterestRateMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapMeasurementInputTypeDomain" xlink:to="loc_us-gaapMeasurementInputRiskFreeInterestRateMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MeasurementInputExpectedDividendRateMember" xlink:label="loc_us-gaapMeasurementInputExpectedDividendRateMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapMeasurementInputTypeDomain" xlink:to="loc_us-gaapMeasurementInputExpectedDividendRateMember_30" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsNonrecurringMeasurementPeriod" xlink:label="loc_us-gaapFairValueMeasurementsNonrecurringMeasurementPeriod_130"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfFairValueMeasurementDetailsLineItems" xlink:to="loc_us-gaapFairValueMeasurementsNonrecurringMeasurementPeriod_130" xlink:type="arc" order="0"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/FairValueMeasurementDetails-Warrants" xlink:title="00000081 - Disclosure - 12. Fair Value Measurement (Details - Warrants)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_us-gaapWarrantMember_0" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MeasurementInputRiskFreeInterestRateMember" xlink:label="loc_us-gaapMeasurementInputRiskFreeInterestRateMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapMeasurementInputTypeDomain" xlink:to="loc_us-gaapMeasurementInputRiskFreeInterestRateMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MeasurementInputPriceVolatilityMember" xlink:label="loc_us-gaapMeasurementInputPriceVolatilityMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapMeasurementInputTypeDomain" xlink:to="loc_us-gaapMeasurementInputPriceVolatilityMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MeasurementInputExpectedDividendRateMember" xlink:label="loc_us-gaapMeasurementInputExpectedDividendRateMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapMeasurementInputTypeDomain" xlink:to="loc_us-gaapMeasurementInputExpectedDividendRateMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MeasurementInputExpectedTermMember" xlink:label="loc_us-gaapMeasurementInputExpectedTermMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapMeasurementInputTypeDomain" xlink:to="loc_us-gaapMeasurementInputExpectedTermMember_30" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsNonrecurringMeasurementPeriod" xlink:label="loc_us-gaapFairValueMeasurementsNonrecurringMeasurementPeriod_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapFairValueMeasurementsNonrecurringMeasurementPeriod_50" xlink:type="arc" order="0"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/FairValueMeasurementDetailsNarrative" xlink:title="00000082 - Disclosure - 12. Fair Value Measurement (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ScheduleOfFairValueMeasurementDetailsLineItems" xlink:label="loc_spiScheduleOfFairValueMeasurementDetailsLineItems"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ScheduleOfFairValueMeasurementDetailsTable" xlink:label="loc_spiScheduleOfFairValueMeasurementDetailsTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_spiScheduleOfFairValueMeasurementDetailsLineItems" xlink:to="loc_spiScheduleOfFairValueMeasurementDetailsTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_spiScheduleOfFairValueMeasurementDetailsTable" xlink:to="loc_us-gaapFairValueByFairValueHierarchyLevelAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaapFairValueInputsLevel3Member_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFairValueMeasurementsFairValueHierarchyDomain" xlink:to="loc_us-gaapFairValueInputsLevel3Member_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaapFairValueByMeasurementFrequencyAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_spiScheduleOfFairValueMeasurementDetailsTable" xlink:to="loc_us-gaapFairValueByMeasurementFrequencyAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaapFairValueMeasurementFrequencyDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapFairValueByMeasurementFrequencyAxis" xlink:to="loc_us-gaapFairValueMeasurementFrequencyDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaapFairValueMeasurementFrequencyDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapFairValueByMeasurementFrequencyAxis" xlink:to="loc_us-gaapFairValueMeasurementFrequencyDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaapDerivativeLiabilities_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfFairValueMeasurementDetailsLineItems" xlink:to="loc_us-gaapDerivativeLiabilities_60" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInDerivativeLiabilities" xlink:label="loc_us-gaapIncreaseDecreaseInDerivativeLiabilities_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfFairValueMeasurementDetailsLineItems" xlink:to="loc_us-gaapIncreaseDecreaseInDerivativeLiabilities_60" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_WarrantsFairValueDisclosures" xlink:label="loc_spiWarrantsFairValueDisclosures_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfFairValueMeasurementDetailsLineItems" xlink:to="loc_spiWarrantsFairValueDisclosures_60" xlink:type="arc" order="2"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AccruedLiabilitiesDetails" xlink:title="00000083 - Disclosure - 13. Accrued Liabilities (Details)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Short-termBorrowingsAndLong-termBorrowingsDetails-Debt" xlink:title="00000084 - Disclosure - 14. Short-term Borrowings and Long-term Borrowings (Details - Debt)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Short-termBorrowingsAndLong-termBorrowingsDetails-Maturities" xlink:title="00000085 - Disclosure - 14. Short-term Borrowings and Long-term Borrowings (Details - Maturities)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Short-termBorrowingsAndLong-termBorrowingsDetailsNarrative" xlink:title="00000086 - Disclosure - 14. Short-term Borrowings and Long-term Borrowings (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ScheduleOfLoansPayableDetailsLineItems" xlink:label="loc_spiScheduleOfLoansPayableDetailsLineItems"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ScheduleOfDebtInstrumentsTable" xlink:label="loc_spiScheduleOfDebtInstrumentsTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_spiScheduleOfLoansPayableDetailsLineItems" xlink:to="loc_spiScheduleOfDebtInstrumentsTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaapLongtermDebtTypeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_spiScheduleOfDebtInstrumentsTable" xlink:to="loc_us-gaapLongtermDebtTypeAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaapLongtermDebtTypeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapLongtermDebtTypeAxis" xlink:to="loc_us-gaapLongtermDebtTypeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaapLongtermDebtTypeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapLongtermDebtTypeAxis" xlink:to="loc_us-gaapLongtermDebtTypeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_PaycheckProtectionProgramMember" xlink:label="loc_spiPaycheckProtectionProgramMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongtermDebtTypeDomain" xlink:to="loc_spiPaycheckProtectionProgramMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_EIDLLoanMember" xlink:label="loc_spiEIDLLoanMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongtermDebtTypeDomain" xlink:to="loc_spiEIDLLoanMember_30" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_SantanderBankMember" xlink:label="loc_spiSantanderBankMember_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongtermDebtTypeDomain" xlink:to="loc_spiSantanderBankMember_70" xlink:type="arc" order="71"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_spiScheduleOfDebtInstrumentsTable" xlink:to="loc_us-gaapRelatedPartyTransactionsByRelatedPartyAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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="spi-20201231.xsd#spi_PhoenixMember" xlink:label="loc_spiPhoenixMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRelatedPartyDomain" xlink:to="loc_spiPhoenixMember_0" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_SPISolarIncMember" xlink:label="loc_spiSPISolarIncMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRelatedPartyDomain" xlink:to="loc_spiSPISolarIncMember_10" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_KnightHoldingCorporationMember" xlink:label="loc_spiKnightHoldingCorporationMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRelatedPartyDomain" xlink:to="loc_spiKnightHoldingCorporationMember_20" xlink:type="arc" order="22"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_USSmallBusinessAssociationMember" xlink:label="loc_spiUSSmallBusinessAssociationMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRelatedPartyDomain" xlink:to="loc_spiUSSmallBusinessAssociationMember_30" xlink:type="arc" order="32"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermDebtTypeAxis" xlink:label="loc_us-gaapShortTermDebtTypeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_spiScheduleOfDebtInstrumentsTable" xlink:to="loc_us-gaapShortTermDebtTypeAxis" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="loc_us-gaapShortTermDebtTypeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapShortTermDebtTypeAxis" xlink:to="loc_us-gaapShortTermDebtTypeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="loc_us-gaapShortTermDebtTypeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapShortTermDebtTypeAxis" xlink:to="loc_us-gaapShortTermDebtTypeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermDebtMember" xlink:label="loc_us-gaapShortTermDebtMember_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShortTermDebtTypeDomain" xlink:to="loc_us-gaapShortTermDebtMember_90" xlink:type="arc" order="91"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromLoans" xlink:label="loc_us-gaapProceedsFromLoans_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfLoansPayableDetailsLineItems" xlink:to="loc_us-gaapProceedsFromLoans_170" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentDecreaseForgiveness" xlink:label="loc_us-gaapDebtInstrumentDecreaseForgiveness_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfLoansPayableDetailsLineItems" xlink:to="loc_us-gaapDebtInstrumentDecreaseForgiveness_170" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ExtinguishmentOfDebtGainLossNetOfTax" xlink:label="loc_us-gaapExtinguishmentOfDebtGainLossNetOfTax_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfLoansPayableDetailsLineItems" xlink:to="loc_us-gaapExtinguishmentOfDebtGainLossNetOfTax_170" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentInterestRateDuringPeriod" xlink:label="loc_us-gaapDebtInstrumentInterestRateDuringPeriod_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfLoansPayableDetailsLineItems" xlink:to="loc_us-gaapDebtInstrumentInterestRateDuringPeriod_170" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_BankLoans" xlink:label="loc_srtBankLoans_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfLoansPayableDetailsLineItems" xlink:to="loc_srtBankLoans_170" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentInterestRateTerms" xlink:label="loc_us-gaapDebtInstrumentInterestRateTerms_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfLoansPayableDetailsLineItems" xlink:to="loc_us-gaapDebtInstrumentInterestRateTerms_170" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentMaturityDateDescription" xlink:label="loc_us-gaapDebtInstrumentMaturityDateDescription_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfLoansPayableDetailsLineItems" xlink:to="loc_us-gaapDebtInstrumentMaturityDateDescription_170" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestExpenseBorrowings" xlink:label="loc_us-gaapInterestExpenseBorrowings_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfLoansPayableDetailsLineItems" xlink:to="loc_us-gaapInterestExpenseBorrowings_170" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentInterestRateEffectivePercentage" xlink:label="loc_us-gaapDebtInstrumentInterestRateEffectivePercentage_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfLoansPayableDetailsLineItems" xlink:to="loc_us-gaapDebtInstrumentInterestRateEffectivePercentage_170" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_DebtorFinanceBalance" xlink:label="loc_spiDebtorFinanceBalance_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfLoansPayableDetailsLineItems" xlink:to="loc_spiDebtorFinanceBalance_170" xlink:type="arc" order="9"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity" xlink:label="loc_us-gaapLineOfCreditFacilityRemainingBorrowingCapacity_170"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiScheduleOfLoansPayableDetailsLineItems" xlink:to="loc_us-gaapLineOfCreditFacilityRemainingBorrowingCapacity_170" xlink:type="arc" order="10"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ConvertibleBondsDetails" xlink:title="00000087 - Disclosure - 15. Convertible Bonds (Details)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaapLongtermDebtTypeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapLongtermDebtTypeAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaapLongtermDebtTypeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapLongtermDebtTypeAxis" xlink:to="loc_us-gaapLongtermDebtTypeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaapLongtermDebtTypeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapLongtermDebtTypeAxis" xlink:to="loc_us-gaapLongtermDebtTypeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ConvertiblePromissoryNoteMember" xlink:label="loc_spiConvertiblePromissoryNoteMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongtermDebtTypeDomain" xlink:to="loc_spiConvertiblePromissoryNoteMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ConvertibleBondsMember" xlink:label="loc_spiConvertibleBondsMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongtermDebtTypeDomain" xlink:to="loc_spiConvertibleBondsMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CounterpartyNameAxis" xlink:label="loc_srtCounterpartyNameAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtCounterpartyNameAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_BrilliantKingGroupLimitedMember" xlink:label="loc_spiBrilliantKingGroupLimitedMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiBrilliantKingGroupLimitedMember_20" xlink:type="arc" order="22"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_IliadResearchAndTradingLPMember" xlink:label="loc_spiIliadResearchAndTradingLPMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiIliadResearchAndTradingLPMember_30" xlink:type="arc" order="32"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_PoseidonSportsLimitedMember" xlink:label="loc_spiPoseidonSportsLimitedMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiPoseidonSportsLimitedMember_40" xlink:type="arc" order="42"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_VisionEdgeLimitedMember" xlink:label="loc_spiVisionEdgeLimitedMember_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiVisionEdgeLimitedMember_50" xlink:type="arc" order="52"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_MagicalGlazeLimitedMember" xlink:label="loc_spiMagicalGlazeLimitedMember_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiMagicalGlazeLimitedMember_60" xlink:type="arc" order="62"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_StreetervilleCapitalLLCMember" xlink:label="loc_spiStreetervilleCapitalLLCMember_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiStreetervilleCapitalLLCMember_70" xlink:type="arc" order="72"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConvertibleNotesPayableCurrent" xlink:label="loc_us-gaapConvertibleNotesPayableCurrent_160"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapConvertibleNotesPayableCurrent_160" xlink:type="arc" order="0"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ConvertibleBondsDetailsNarrative" xlink:title="00000088 - Disclosure - 15. Convertible Bonds (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaapLongtermDebtTypeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapLongtermDebtTypeAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaapLongtermDebtTypeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapLongtermDebtTypeAxis" xlink:to="loc_us-gaapLongtermDebtTypeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaapLongtermDebtTypeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapLongtermDebtTypeAxis" xlink:to="loc_us-gaapLongtermDebtTypeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ConvertibleBondsMember" xlink:label="loc_spiConvertibleBondsMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongtermDebtTypeDomain" xlink:to="loc_spiConvertibleBondsMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ConvertiblePromissoryNoteMember" xlink:label="loc_spiConvertiblePromissoryNoteMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapLongtermDebtTypeDomain" xlink:to="loc_spiConvertiblePromissoryNoteMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SecuritiesFinancingTransactionAxis" xlink:label="loc_us-gaapSecuritiesFinancingTransactionAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapSecuritiesFinancingTransactionAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SecuritiesFinancingTransactionTypeDomain" xlink:label="loc_us-gaapSecuritiesFinancingTransactionTypeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapSecuritiesFinancingTransactionAxis" xlink:to="loc_us-gaapSecuritiesFinancingTransactionTypeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SecuritiesFinancingTransactionTypeDomain" xlink:label="loc_us-gaapSecuritiesFinancingTransactionTypeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapSecuritiesFinancingTransactionAxis" xlink:to="loc_us-gaapSecuritiesFinancingTransactionTypeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_IliadNoteMember" xlink:label="loc_spiIliadNoteMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSecuritiesFinancingTransactionTypeDomain" xlink:to="loc_spiIliadNoteMember_10" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_StreetervilleNoteMember" xlink:label="loc_spiStreetervilleNoteMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSecuritiesFinancingTransactionTypeDomain" xlink:to="loc_spiStreetervilleNoteMember_40" xlink:type="arc" order="42"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransactionTypeAxis" xlink:label="loc_us-gaapTransactionTypeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapTransactionTypeAxis" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransactionDomain" xlink:label="loc_us-gaapTransactionDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapTransactionTypeAxis" xlink:to="loc_us-gaapTransactionDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransactionDomain" xlink:label="loc_us-gaapTransactionDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapTransactionTypeAxis" xlink:to="loc_us-gaapTransactionDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ThirdAmendmentMember" xlink:label="loc_spiThirdAmendmentMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapTransactionDomain" xlink:to="loc_spiThirdAmendmentMember_0" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_SecondAmendmentMember" xlink:label="loc_spiSecondAmendmentMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapTransactionDomain" xlink:to="loc_spiSecondAmendmentMember_20" xlink:type="arc" order="23"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CounterpartyNameAxis" xlink:label="loc_srtCounterpartyNameAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtCounterpartyNameAxis" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_MagicalGlazeLimitedMember" xlink:label="loc_spiMagicalGlazeLimitedMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiMagicalGlazeLimitedMember_0" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_UnionSkyMember" xlink:label="loc_spiUnionSkyMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiUnionSkyMember_20" xlink:type="arc" order="22"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ILIADMember" xlink:label="loc_spiILIADMember_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiILIADMember_90" xlink:type="arc" order="91"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_IliadResearchAndTradingLPMember" xlink:label="loc_spiIliadResearchAndTradingLPMember_120"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiIliadResearchAndTradingLPMember_120" xlink:type="arc" order="122"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_VisionEdgeLimitedMember" xlink:label="loc_spiVisionEdgeLimitedMember_130"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiVisionEdgeLimitedMember_130" xlink:type="arc" order="132"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_StreetervilleCapitalLLCMember" xlink:label="loc_spiStreetervilleCapitalLLCMember_160"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiStreetervilleCapitalLLCMember_160" xlink:type="arc" order="162"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_PoseidonSportsLimitedMember" xlink:label="loc_spiPoseidonSportsLimitedMember_180"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiPoseidonSportsLimitedMember_180" xlink:type="arc" order="182"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_BrilliantKingGroupLimitedMember" xlink:label="loc_spiBrilliantKingGroupLimitedMember_200"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiBrilliantKingGroupLimitedMember_200" xlink:type="arc" order="202"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentFaceAmount" xlink:label="loc_us-gaapDebtInstrumentFaceAmount_330"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentFaceAmount_330" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromConvertibleDebt" xlink:label="loc_us-gaapProceedsFromConvertibleDebt_330"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapProceedsFromConvertibleDebt_330" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsOfDebtIssuanceCosts" xlink:label="loc_us-gaapPaymentsOfDebtIssuanceCosts_330"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapPaymentsOfDebtIssuanceCosts_330" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscount" xlink:label="loc_us-gaapDebtInstrumentUnamortizedDiscount_330"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentUnamortizedDiscount_330" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmbeddedDerivativeFairValueOfEmbeddedDerivativeLiability" xlink:label="loc_us-gaapEmbeddedDerivativeFairValueOfEmbeddedDerivativeLiability_330"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapEmbeddedDerivativeFairValueOfEmbeddedDerivativeLiability_330" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtDefaultLongtermDebtAmount" xlink:label="loc_us-gaapDebtDefaultLongtermDebtAmount_330"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtDefaultLongtermDebtAmount_330" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="loc_us-gaapDebtInstrumentInterestRateStatedPercentage_330"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentInterestRateStatedPercentage_330" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentFairValue" xlink:label="loc_us-gaapDebtInstrumentFairValue_330"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentFairValue_330" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ExtinguishmentOfDebtGainLossNetOfTax" xlink:label="loc_us-gaapExtinguishmentOfDebtGainLossNetOfTax_330"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapExtinguishmentOfDebtGainLossNetOfTax_330" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainsLossesOnRestructuringOfDebt" xlink:label="loc_us-gaapGainsLossesOnRestructuringOfDebt_330"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapGainsLossesOnRestructuringOfDebt_330" xlink:type="arc" order="9"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts" xlink:label="loc_us-gaapAmortizationOfFinancingCostsAndDiscounts_330"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAmortizationOfFinancingCostsAndDiscounts_330" xlink:type="arc" order="10"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RepaymentsOfConvertibleDebt" xlink:label="loc_us-gaapRepaymentsOfConvertibleDebt_330"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapRepaymentsOfConvertibleDebt_330" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentMaturityDate" xlink:label="loc_us-gaapDebtInstrumentMaturityDate_330"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentMaturityDate_330" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtConversionConvertedInstrumentAmount1" xlink:label="loc_us-gaapDebtConversionConvertedInstrumentAmount1_330"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtConversionConvertedInstrumentAmount1_330" xlink:type="arc" order="13"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtConversionConvertedInstrumentSharesIssued1" xlink:label="loc_us-gaapDebtConversionConvertedInstrumentSharesIssued1_330"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtConversionConvertedInstrumentSharesIssued1_330" xlink:type="arc" order="14"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConvertibleNotesPayable" xlink:label="loc_us-gaapConvertibleNotesPayable_330"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapConvertibleNotesPayable_330" xlink:type="arc" order="15"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConvertibleNotesPayableCurrent" xlink:label="loc_us-gaapConvertibleNotesPayableCurrent_330"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapConvertibleNotesPayableCurrent_330" xlink:type="arc" order="16"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AmountDueToAffiliateDetails" xlink:title="00000089 - Disclosure - 16. Amount Due to an Affiliate (Details)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/AmountDueToAffiliateDetailsNarrative" xlink:title="00000090 - Disclosure - 16. Amount Due to an Affiliate (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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="spi-20201231.xsd#spi_SinsinMember" xlink:label="loc_spiSinsinMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRelatedPartyDomain" xlink:to="loc_spiSinsinMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransactionTypeAxis" xlink:label="loc_us-gaapTransactionTypeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapTransactionTypeAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransactionDomain" xlink:label="loc_us-gaapTransactionDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapTransactionTypeAxis" xlink:to="loc_us-gaapTransactionDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransactionDomain" xlink:label="loc_us-gaapTransactionDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapTransactionTypeAxis" xlink:to="loc_us-gaapTransactionDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_OtherBorrowingMember" xlink:label="loc_spiOtherBorrowingMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapTransactionDomain" xlink:to="loc_spiOtherBorrowingMember_0" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_GroupPaymentMember" xlink:label="loc_spiGroupPaymentMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapTransactionDomain" xlink:to="loc_spiGroupPaymentMember_20" xlink:type="arc" order="22"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DueToAffiliateCurrent" xlink:label="loc_us-gaapDueToAffiliateCurrent_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDueToAffiliateCurrent_90" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="loc_us-gaapDebtInstrumentInterestRateStatedPercentage_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentInterestRateStatedPercentage_90" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentMaturityDate" xlink:label="loc_us-gaapDebtInstrumentMaturityDate_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentMaturityDate_90" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_AmountDueToAffiliateNoncurrent" xlink:label="loc_spiAmountDueToAffiliateNoncurrent_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiAmountDueToAffiliateNoncurrent_90" xlink:type="arc" order="3"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/OrdinarySharesDetailsNarrative" xlink:title="00000091 - Disclosure - 17. Ordinary Shares (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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="spi-20201231.xsd#spi_PhoenixMember" xlink:label="loc_spiPhoenixMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapBusinessAcquisitionAcquireeDomain" xlink:to="loc_spiPhoenixMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaapCommonStockMember_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapClassOfStockDomain" xlink:to="loc_us-gaapCommonStockMember_80" xlink:type="arc" order="81"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransactionTypeAxis" xlink:label="loc_us-gaapTransactionTypeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapTransactionTypeAxis" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransactionDomain" xlink:label="loc_us-gaapTransactionDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapTransactionTypeAxis" xlink:to="loc_us-gaapTransactionDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransactionDomain" xlink:label="loc_us-gaapTransactionDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapTransactionTypeAxis" xlink:to="loc_us-gaapTransactionDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_SecuritiesPurchaseAgreementMember" xlink:label="loc_spiSecuritiesPurchaseAgreementMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapTransactionDomain" xlink:to="loc_spiSecuritiesPurchaseAgreementMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CounterpartyNameAxis" xlink:label="loc_srtCounterpartyNameAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtCounterpartyNameAxis" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ManagementMembersMember" xlink:label="loc_spiManagementMembersMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiManagementMembersMember_30" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_SRIIMember" xlink:label="loc_spiSRIIMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiSRIIMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_SRVMember" xlink:label="loc_spiSRVMember_50"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiSRVMember_50" xlink:type="arc" order="51"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ILIADMember" xlink:label="loc_spiILIADMember_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiILIADMember_60" xlink:type="arc" order="61"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross" xlink:label="loc_us-gaapStockIssuedDuringPeriodSharesRestrictedStockAwardGross_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodSharesRestrictedStockAwardGross_100" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:label="loc_us-gaapStockIssuedDuringPeriodSharesStockOptionsExercised_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodSharesStockOptionsExercised_100" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtConversionConvertedInstrumentAmount1" xlink:label="loc_us-gaapDebtConversionConvertedInstrumentAmount1_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtConversionConvertedInstrumentAmount1_100" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtConversionConvertedInstrumentSharesIssued1" xlink:label="loc_us-gaapDebtConversionConvertedInstrumentSharesIssued1_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtConversionConvertedInstrumentSharesIssued1_100" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues" xlink:label="loc_us-gaapStockIssuedDuringPeriodSharesNewIssues_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodSharesNewIssues_100" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOrSaleOfEquity" xlink:label="loc_us-gaapProceedsFromIssuanceOrSaleOfEquity_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapProceedsFromIssuanceOrSaleOfEquity_100" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesAcquisitions" xlink:label="loc_us-gaapStockIssuedDuringPeriodSharesAcquisitions_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapStockIssuedDuringPeriodSharesAcquisitions_100" xlink:type="arc" order="6"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/NoncontrollingInterestsDetailsNarrative" xlink:title="00000092 - Disclosure - 18. Noncontrolling Interests (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeAxis" xlink:label="loc_us-gaapEquityMethodInvestmentNonconsolidatedInvesteeAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapEquityMethodInvestmentNonconsolidatedInvesteeAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeDomain" xlink:label="loc_us-gaapEquityMethodInvestmentNonconsolidatedInvesteeDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapEquityMethodInvestmentNonconsolidatedInvesteeAxis" xlink:to="loc_us-gaapEquityMethodInvestmentNonconsolidatedInvesteeDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeDomain" xlink:label="loc_us-gaapEquityMethodInvestmentNonconsolidatedInvesteeDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapEquityMethodInvestmentNonconsolidatedInvesteeAxis" xlink:to="loc_us-gaapEquityMethodInvestmentNonconsolidatedInvesteeDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_SriiAndSrvMember" xlink:label="loc_spiSriiAndSrvMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityMethodInvestmentNonconsolidatedInvesteeDomain" xlink:to="loc_spiSriiAndSrvMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_SRVMember" xlink:label="loc_spiSRVMember_60"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityMethodInvestmentNonconsolidatedInvesteeDomain" xlink:to="loc_spiSRVMember_60" xlink:type="arc" order="61"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_SRIIMember" xlink:label="loc_spiSRIIMember_70"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEquityMethodInvestmentNonconsolidatedInvesteeDomain" xlink:to="loc_spiSRIIMember_70" xlink:type="arc" order="71"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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="spi-20201231.xsd#spi_SolarJuicePtyMember" xlink:label="loc_spiSolarJuicePtyMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRelatedPartyDomain" xlink:to="loc_spiSolarJuicePtyMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction" xlink:label="loc_us-gaapSaleOfStockNumberOfSharesIssuedInTransaction_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapSaleOfStockNumberOfSharesIssuedInTransaction_90" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SaleOfStockConsiderationReceivedPerTransaction" xlink:label="loc_us-gaapSaleOfStockConsiderationReceivedPerTransaction_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapSaleOfStockConsiderationReceivedPerTransaction_90" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MinorityInterestPeriodIncreaseDecrease" xlink:label="loc_us-gaapMinorityInterestPeriodIncreaseDecrease_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapMinorityInterestPeriodIncreaseDecrease_90" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityMethodInvestmentOwnershipPercentage" xlink:label="loc_us-gaapEquityMethodInvestmentOwnershipPercentage_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapEquityMethodInvestmentOwnershipPercentage_90" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquireEquityMethodInvestments" xlink:label="loc_us-gaapPaymentsToAcquireEquityMethodInvestments_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapPaymentsToAcquireEquityMethodInvestments_90" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MinorityInterest" xlink:label="loc_us-gaapMinorityInterest_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapMinorityInterest_90" xlink:type="arc" order="5"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Share-basedCompensationDetails-Stock-basedCompensationExpenseByAwardType" xlink:title="00000093 - Disclosure - 19. Share-based Compensation (Details - Stock-Based Compensation Expense by Award type)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaapScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="loc_us-gaapScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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-gaapScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="loc_us-gaapAwardTypeAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaapEmployeeStockOptionMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_us-gaapEmployeeStockOptionMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaapRestrictedStockMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_us-gaapRestrictedStockMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaapAllocatedShareBasedCompensationExpense_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="loc_us-gaapAllocatedShareBasedCompensationExpense_100" xlink:type="arc" order="0"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Share-basedCompensationDetails-CompensationExpenseByLineItem" xlink:title="00000094 - Disclosure - 19. Share-based Compensation (Details - Compensation expense by line item)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems" xlink:label="loc_us-gaapEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable" xlink:label="loc_us-gaapScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems" xlink:to="loc_us-gaapScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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-gaapScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable" xlink:to="loc_us-gaapIncomeStatementLocationAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GeneralAndAdministrativeExpenseMember" xlink:label="loc_us-gaapGeneralAndAdministrativeExpenseMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeStatementLocationDomain" xlink:to="loc_us-gaapGeneralAndAdministrativeExpenseMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SellingAndMarketingExpenseMember" xlink:label="loc_us-gaapSellingAndMarketingExpenseMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeStatementLocationDomain" xlink:to="loc_us-gaapSellingAndMarketingExpenseMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaapAllocatedShareBasedCompensationExpense_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems" xlink:to="loc_us-gaapAllocatedShareBasedCompensationExpense_100" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax" xlink:label="loc_us-gaapAllocatedShareBasedCompensationExpenseNetOfTax_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems" xlink:to="loc_us-gaapAllocatedShareBasedCompensationExpenseNetOfTax_100" xlink:type="arc" order="1"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Share-basedCompensationDetails-Assumptions" xlink:title="00000095 - Disclosure - 19. Share-based Compensation (Details - Assumptions)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Share-basedCompensationDetails-OptionActivity" xlink:title="00000096 - Disclosure - 19. Share-based Compensation (Details - Option Activity)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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="spi-20201231.xsd#spi_StockOptionsMember" xlink:label="loc_spiStockOptionsMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_spiStockOptionsMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_90" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_90" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_90" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_90" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_90" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:label="loc_us-gaapStockIssuedDuringPeriodSharesStockOptionsExercised_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_90" xlink:to="loc_us-gaapStockIssuedDuringPeriodSharesStockOptionsExercised_90" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_90" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod_90" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_90" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableNumber_90" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_90" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber_90" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_90" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_90" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_90" xlink:type="arc" order="9"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_90" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_90" xlink:type="arc" order="10"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_90" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_90" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_90" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice_90" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_90" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice_90" xlink:type="arc" order="14"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePriceRollforward_90" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice_90" xlink:type="arc" order="15"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedRemainingContractualTermAbstract" xlink:label="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedRemainingContractualTermAbstract_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedRemainingContractualTermAbstract_90" xlink:type="arc" order="16"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2" xlink:label="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedRemainingContractualTermAbstract_90" xlink:to="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_90" xlink:type="arc" order="17"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsGrantedWeightedAverageRemainingContractualTerm2" xlink:label="loc_spiSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsGrantedWeightedAverageRemainingContractualTerm2_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedRemainingContractualTermAbstract_90" xlink:to="loc_spiSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsGrantedWeightedAverageRemainingContractualTerm2_90" xlink:type="arc" order="18"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExpiredWeightedAverageRemainingContractualTerm2" xlink:label="loc_spiSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExpiredWeightedAverageRemainingContractualTerm2_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedRemainingContractualTermAbstract_90" xlink:to="loc_spiSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExpiredWeightedAverageRemainingContractualTerm2_90" xlink:type="arc" order="19"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1" xlink:label="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedRemainingContractualTermAbstract_90" xlink:to="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1_90" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1" xlink:label="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedRemainingContractualTermAbstract_90" xlink:to="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1_90" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingAggregateIntrinsicValueAbstract" xlink:label="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingAggregateIntrinsicValueAbstract_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingAggregateIntrinsicValueAbstract_90" xlink:type="arc" order="22"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingAggregateIntrinsicValueAbstract_90" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue_90" xlink:type="arc" order="23"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingAggregateIntrinsicValueAbstract_90" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue_90" xlink:type="arc" order="25"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue_90"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingAggregateIntrinsicValueAbstract_90" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingAggregateIntrinsicValue_90" xlink:type="arc" order="26"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Share-basedCompensationDetails-OptionsByExercisePrice" xlink:title="00000097 - Disclosure - 19. Share-based Compensation (Details - Options by Exercise Price)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:label="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable" xlink:label="loc_us-gaapScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="loc_us-gaapScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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-gaapScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable" xlink:to="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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="spi-20201231.xsd#spi_PriceRange2Member" xlink:label="loc_spiPriceRange2Member_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="loc_spiPriceRange2Member_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_PriceRange3Member" xlink:label="loc_spiPriceRange3Member_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="loc_spiPriceRange3Member_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_PriceRange4Member" xlink:label="loc_spiPriceRange4Member_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="loc_spiPriceRange4Member_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_PriceRange1Member" xlink:label="loc_spiPriceRange1Member_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="loc_spiPriceRange1Member_30" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit" xlink:label="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit_100" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit" xlink:label="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit_100" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfExercisableOptions" xlink:label="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfExercisableOptions_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfExercisableOptions_100" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeExercisableOptionsWeightedAverageRemainingContractualTerm2" xlink:label="loc_us-gaapSharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeExercisableOptionsWeightedAverageRemainingContractualTerm2_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="loc_us-gaapSharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeExercisableOptionsWeightedAverageRemainingContractualTerm2_100" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeExercisableOptionsWeightedAverageExercisePrice1" xlink:label="loc_us-gaapSharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeExercisableOptionsWeightedAverageExercisePrice1_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="loc_us-gaapSharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeExercisableOptionsWeightedAverageExercisePrice1_100" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1" xlink:label="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1_100" xlink:type="arc" order="5"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Share-basedCompensationDetails-Rsus" xlink:title="00000098 - Disclosure - 19. Share-based Compensation (Details - RSU&apos;s)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaapScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="loc_us-gaapScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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-gaapScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="loc_us-gaapAwardTypeAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaapRestrictedStockUnitsRSUMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_us-gaapRestrictedStockUnitsRSUMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_80" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_80" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber_80" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_80" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted_80" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_80" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures_80" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_WeightedAverageGrantdateFairValueAbstract" xlink:label="loc_spiWeightedAverageGrantdateFairValueAbstract_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="loc_spiWeightedAverageGrantdateFairValueAbstract_80" xlink:type="arc" order="5"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageGrantDateFairValue" xlink:label="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageGrantDateFairValue_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiWeightedAverageGrantdateFairValueAbstract_80" xlink:to="loc_spiShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsOutstandingWeightedAverageGrantDateFairValue_80" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiWeightedAverageGrantdateFairValueAbstract_80" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_80" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_spiWeightedAverageGrantdateFairValueAbstract_80" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_80" xlink:type="arc" order="8"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Share-basedCompensationDetails-Non-vestedOptions" xlink:title="00000099 - Disclosure - 19. Share-based Compensation (Details - Non-vested options)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaapScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="loc_us-gaapScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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-gaapScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="loc_us-gaapAwardTypeAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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="spi-20201231.xsd#spi_StockOptionsMember" xlink:label="loc_spiStockOptionsMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_spiStockOptionsMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockMember" xlink:label="loc_us-gaapRestrictedStockMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_us-gaapRestrictedStockMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember" xlink:label="loc_us-gaapRestrictedStockUnitsRSUMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_us-gaapRestrictedStockUnitsRSUMember_30" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VestingAxis" xlink:label="loc_us-gaapVestingAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:to="loc_us-gaapVestingAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VestingDomain" xlink:label="loc_us-gaapVestingDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapVestingAxis" xlink:to="loc_us-gaapVestingDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VestingDomain" xlink:label="loc_us-gaapVestingDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapVestingAxis" xlink:to="loc_us-gaapVestingDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_NonvestedMember" xlink:label="loc_spiNonvestedMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapVestingDomain" xlink:to="loc_spiNonvestedMember_10" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward" xlink:label="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_210"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_210" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfShares" xlink:label="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfShares_210"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_210" xlink:to="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfShares_210" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_210"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_210" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_210" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedNumberOfShares" xlink:label="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedNumberOfShares_210"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_210" xlink:to="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedNumberOfShares_210" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedNumberOfShares" xlink:label="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedNumberOfShares_210"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfSharesRollForward_210" xlink:to="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedNumberOfShares_210" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValueAbstract" xlink:label="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValueAbstract_210"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValueAbstract_210" xlink:type="arc" order="6"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice_210"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValueAbstract_210" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice_210" xlink:type="arc" order="7"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_210"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValueAbstract_210" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_210" xlink:type="arc" order="8"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsVestedInPeriodWeightedAverageExercisePrice" xlink:label="loc_spiShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsVestedInPeriodWeightedAverageExercisePrice_210"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValueAbstract_210" xlink:to="loc_spiShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsVestedInPeriodWeightedAverageExercisePrice_210" xlink:type="arc" order="9"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice_210"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValueAbstract_210" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice_210" xlink:type="arc" order="10"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_210"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_210" xlink:type="arc" order="12"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_210"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_210" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_210" xlink:type="arc" order="13"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_210"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_210" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_210" xlink:type="arc" order="14"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_210"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_210" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_210" xlink:type="arc" order="15"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_210"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_210" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_210" xlink:type="arc" order="16"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_210"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_210" xlink:type="arc" order="18"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_210"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_210" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_210" xlink:type="arc" order="19"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_210"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_210" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_210" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_210"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_210" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_210" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_210"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_210" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_210" xlink:type="arc" order="22"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/Share-basedCompensationDetailsNarrative" xlink:title="00000100 - Disclosure - 19. Share-based Compensation (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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="spi-20201231.xsd#spi_StockOptionsMember" xlink:label="loc_spiStockOptionsMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_spiStockOptionsMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementOperatingActivitiesSegmentAxis" xlink:label="loc_us-gaapStatementOperatingActivitiesSegmentAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapStatementOperatingActivitiesSegmentAxis" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentOperatingActivitiesDomain" xlink:label="loc_us-gaapSegmentOperatingActivitiesDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapStatementOperatingActivitiesSegmentAxis" xlink:to="loc_us-gaapSegmentOperatingActivitiesDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentOperatingActivitiesDomain" xlink:label="loc_us-gaapSegmentOperatingActivitiesDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapStatementOperatingActivitiesSegmentAxis" xlink:to="loc_us-gaapSegmentOperatingActivitiesDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentContinuingOperationsMember" xlink:label="loc_us-gaapSegmentContinuingOperationsMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapSegmentOperatingActivitiesDomain" xlink:to="loc_us-gaapSegmentContinuingOperationsMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1" xlink:label="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedInPeriodFairValue1_100" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaapShareBasedCompensation_100"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensation_100" xlink:type="arc" order="1"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IncomeTaxesDetails-LossBeforeProvision" xlink:title="00000101 - Disclosure - 20. Income Taxes (Details - Loss before Provision)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IncomeTaxesDetails-ProvisionForIncomeTaxes" xlink:title="00000102 - Disclosure - 20. Income Taxes (Details - Provision for income taxes)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IncomeTaxesDetails-TaxReconciliation" xlink:title="00000103 - Disclosure - 20. Income Taxes (Details - Tax reconciliation)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IncomeTaxesDetails-DeferredIncomeTaxes" xlink:title="00000104 - Disclosure - 20. Income Taxes (Details - Deferred income taxes)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/IncomeTaxesDetailsNarrative" xlink:title="00000105 - Disclosure - 20. Income Taxes (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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="spi-20201231.xsd#spi_ForeignMember" xlink:label="loc_spiForeignMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_spiForeignMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_StateMember" xlink:label="loc_spiStateMember_30"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_spiStateMember_30" xlink:type="arc" order="31"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_FederalMember" xlink:label="loc_spiFederalMember_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapIncomeTaxAuthorityDomain" xlink:to="loc_spiFederalMember_40" xlink:type="arc" order="41"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLossCarryforwards" xlink:label="loc_us-gaapOperatingLossCarryforwards_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingLossCarryforwards_140" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLossCarryforwardsExpirationDate" xlink:label="loc_us-gaapOperatingLossCarryforwardsExpirationDate_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingLossCarryforwardsExpirationDate_140" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsAlternativeMinimumTax" xlink:label="loc_us-gaapDeferredTaxAssetsTaxCreditCarryforwardsAlternativeMinimumTax_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDeferredTaxAssetsTaxCreditCarryforwardsAlternativeMinimumTax_140" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount" xlink:label="loc_us-gaapValuationAllowanceDeferredTaxAssetChangeInAmount_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapValuationAllowanceDeferredTaxAssetChangeInAmount_140" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_UnrecognizedTaxBenefits" xlink:label="loc_us-gaapUnrecognizedTaxBenefits_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapUnrecognizedTaxBenefits_140" xlink:type="arc" order="4"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_UndistributedEarningsOfForeignSubsidiaries" xlink:label="loc_us-gaapUndistributedEarningsOfForeignSubsidiaries_140"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapUndistributedEarningsOfForeignSubsidiaries_140" xlink:type="arc" order="5"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/NetLossPerShareDetails-BasicAndDiluted" xlink:title="00000106 - Disclosure - 21. Net Loss Per Share (Details - Basic and Diluted)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/NetLossPerShareDetails-AntidilutiveShares" xlink:title="00000107 - Disclosure - 21. Net Loss Per Share (Details - Antidilutive shares)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:label="loc_us-gaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:label="loc_us-gaapScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xbrldt:contextElement="segment" xlink:from="loc_us-gaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:to="loc_us-gaapScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:type="arc" order="10" xbrldt:closed="true"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:label="loc_us-gaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:to="loc_us-gaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaapAntidilutiveSecuritiesNameDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:to="loc_us-gaapAntidilutiveSecuritiesNameDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaapAntidilutiveSecuritiesNameDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:to="loc_us-gaapAntidilutiveSecuritiesNameDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_ConvertibleBondsMember" xlink:label="loc_spiConvertibleBondsMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAntidilutiveSecuritiesNameDomain" xlink:to="loc_spiConvertibleBondsMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_OptionsAndRestrictedMember" xlink:label="loc_spiOptionsAndRestrictedMember_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAntidilutiveSecuritiesNameDomain" xlink:to="loc_spiOptionsAndRestrictedMember_10" xlink:type="arc" order="11"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_CommittedStockMember" xlink:label="loc_spiCommittedStockMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAntidilutiveSecuritiesNameDomain" xlink:to="loc_spiCommittedStockMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:label="loc_us-gaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_130"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:to="loc_us-gaapAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_130" xlink:type="arc" order="0"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/LeasesDetails-MaturityOfLeaseLiabilities" xlink:title="00000108 - Disclosure - 22. Leases (Details - Maturity of Lease Liabilities)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/LeasesDetails-SupplementalInformationRelatedToOperatingLeases" xlink:title="00000109 - Disclosure - 22. Leases (Details - Supplemental information related to operating leases)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/LeasesDetailsNarrative" xlink:title="00000110 - Disclosure - 22. Leases (Details Narrative)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/CommitmentsAndContingenciesDetailsNarrative" xlink:title="00000111 - Disclosure - 23. Commitments and Contingencies (Details Narrative)"/>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/ConcentrationRiskDetails" xlink:title="00000112 - Disclosure - 24. Concentration Risk (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsReceivableMember" xlink:label="loc_us-gaapAccountsReceivableMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapConcentrationRiskBenchmarkDomain" xlink:to="loc_us-gaapAccountsReceivableMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SalesRevenueNetMember" xlink:label="loc_us-gaapSalesRevenueNetMember_20"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapConcentrationRiskBenchmarkDomain" xlink:to="loc_us-gaapSalesRevenueNetMember_20" xlink:type="arc" order="21"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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/2020/elts/us-gaap-2020-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="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CustomerConcentrationRiskMember" xlink:label="loc_us-gaapCustomerConcentrationRiskMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapConcentrationRiskTypeDomain" xlink:to="loc_us-gaapCustomerConcentrationRiskMember_0" xlink:type="arc" order="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-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="3"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-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/2020/elts/srt-2020-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="spi-20201231.xsd#spi_OneCustomerMember" xlink:label="loc_spiOneCustomerMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtNameOfMajorCustomerDomain" xlink:to="loc_spiOneCustomerMember_0" xlink:type="arc" order="2"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaapConcentrationRiskPercentage1_40"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapConcentrationRiskPercentage1_40" xlink:type="arc" order="0"/>
</link:definitionLink>
<link:definitionLink xlink:type="extended" xlink:role="http://spisolar.com/role/RelatedPartyTransactionsDetailsNarrative" xlink:title="00000113 - Disclosure - 25. Related Party Transactions (Details Narrative)">
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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/2020/elts/srt-2020-01-31.xsd#srt_CounterpartyNameAxis" xlink:label="loc_srtCounterpartyNameAxis"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_srtCounterpartyNameAxis" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:type="arc" order="20"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_srtRepurchaseAgreementCounterpartyNameDomain_10"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_srtCounterpartyNameAxis" xlink:to="loc_srtRepurchaseAgreementCounterpartyNameDomain_10" xlink:type="arc" order="30"/>
<link:loc xlink:type="locator" xlink:href="spi-20201231.xsd#spi_SPIChinaMember" xlink:label="loc_spiSPIChinaMember_0"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srtRepurchaseAgreementCounterpartyNameDomain" xlink:to="loc_spiSPIChinaMember_0" xlink:type="arc" order="1"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DueFromRelatedPartiesCurrent" xlink:label="loc_us-gaapDueFromRelatedPartiesCurrent_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDueFromRelatedPartiesCurrent_80" xlink:type="arc" order="0"/>
<link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingExpenses" xlink:label="loc_us-gaapOperatingExpenses_80"/>
<link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapOperatingExpenses_80" xlink:type="arc" order="1"/>
</link:definitionLink>
</link:linkbase>


25 Previous Filings that this Filing References

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

10/29/21  SPI Energy Co., Ltd.              20-F/A     12/31/20  126:13M                                    GlobalOne Filings Inc/FA
 4/29/21  SPI Energy Co., Ltd.              20-F       12/31/20  128:8.1M                                   GlobalOne Filings Inc/FA
 3/04/21  SPI Energy Co., Ltd.              6-K         2/28/21    3:263K                                   GlobalOne Filings Inc/FA
 2/11/21  SPI Energy Co., Ltd.              6-K         2/28/21    4:320K                                   GlobalOne Filings Inc/FA
 2/02/21  SPI Energy Co., Ltd.              6-K         2/02/21    4:273K                                   GlobalOne Filings Inc/FA
12/07/20  SPI Energy Co., Ltd.              6-K        12/03/20    5:437K                                   GlobalOne Filings Inc/FA
12/04/20  SPI Energy Co., Ltd.              6-K        12/03/20    5:437K                                   GlobalOne Filings Inc/FA
11/13/20  SPI Energy Co., Ltd.              6-K        11/13/20    3:532K                                   GlobalOne Filings Inc/FA
11/04/20  SPI Energy Co., Ltd.              6-K        11/04/20    4:427K                                   GlobalOne Filings Inc/FA
10/28/20  SPI Energy Co., Ltd.              6-K        10/27/20    3:323K                                   GlobalOne Filings Inc/FA
10/08/20  SPI Energy Co., Ltd.              6-K        10/08/20    3:48K                                    GlobalOne Filings Inc/FA
10/01/20  SPI Energy Co., Ltd.              6-K         9/30/20    3:116K                                   GlobalOne Filings Inc/FA
 9/30/20  SPI Energy Co., Ltd.              6-K         9/23/20    3:39K                                    GlobalOne Filings Inc/FA
 6/29/20  SPI Energy Co., Ltd.              20-F       12/31/19  155:16M                                    GlobalOne Filings Inc/FA
 4/30/19  SPI Energy Co., Ltd.              20-F       12/31/18  143:9.5M                                   GlobalOne Filings Inc/FA
12/10/18  SPI Energy Co., Ltd.              20-F       12/31/17  135:9.9M                                   GlobalOne Filings Inc/FA
10/27/17  SPI Energy Co., Ltd.              20-F       12/31/16  161:16M                                    Toppan Merrill/FA
 5/17/16  SPI Energy Co., Ltd.              20-F       12/31/15  146:11M                                    Donnelley … Solutions/FA
 1/04/16  SPI Energy Co., Ltd.              S-8 POS     1/04/16    5:163K                                   Donnelley … Solutions/FA
10/30/15  SPI Energy Co., Ltd.              8-K:1,9    10/30/15    2:54K                                    Donnelley … Solutions/FA
 7/14/15  SPI Energy Co., Ltd.              8-K:1,9     7/13/15    3:117K                                   Donnelley … Solutions/FA
 6/15/15  SPI Energy Co., Ltd.              8-K:1,3,9   6/15/15    3:120K                                   Donnelley … Solutions/FA
 4/17/15  SPI Energy Co., Ltd.              8-K:1,3,9   4/15/15    7:765K                                   RDG Filings/FA
12/18/14  SPI Energy Co., Ltd.              8-K:1,3,9  12/12/14   14:1M                                     RDG Filings/FA
 2/21/14  SPI Energy Co., Ltd.              8-K:1,9    12/26/13    5:153K                                   RDG Filings/FA
Top
Filing Submission 0001683168-21-005934   –   Alternative Formats (Word / Rich Text, HTML, Plain Text, et al.)

Copyright © 2024 Fran Finnegan & Company LLC – All Rights Reserved.
AboutPrivacyRedactionsHelp — Thu., May 9, 4:31:50.2am ET