<?xml version="1.0" encoding="US-ASCII" standalone="no"?>
    <!-- Field: Doc-Info; Name: Generator; Value: QXInteractive; Version: 4.4a -->
    <!-- Field: Doc-Info; Name: Source; Value: AMTX 03312015 10Q1.xfr; Date: 2015%2D05%2D07T14:15:45 -->
    <!-- Field: Doc-Info; Name: Status; Value: 0x80040000 -->
<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://aemetis.com/role/DocumentAndEntityInformation" xlink:href="amtx-20150331.xsd#DocumentAndEntityInformation" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/ConsolidatedCondensedBalanceSheets" xlink:href="amtx-20150331.xsd#ConsolidatedCondensedBalanceSheets" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/ConsolidatedCondensedBalanceSheetsParenthetical" xlink:href="amtx-20150331.xsd#ConsolidatedCondensedBalanceSheetsParenthetical" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/ConsolidatedCondensedStatementsOfOperationsAndComprehensiveIncomeLoss" xlink:href="amtx-20150331.xsd#ConsolidatedCondensedStatementsOfOperationsAndComprehensiveIncomeLoss" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/ConsolidatedCondensedStatementsOfCashFlows" xlink:href="amtx-20150331.xsd#ConsolidatedCondensedStatementsOfCashFlows" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/NotesOfActivitiesAndSummaryOfSignificantAccountingPolicies" xlink:href="amtx-20150331.xsd#NotesOfActivitiesAndSummaryOfSignificantAccountingPolicies" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/Inventory" xlink:href="amtx-20150331.xsd#Inventory" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/PropertyPlantAndEquipment" xlink:href="amtx-20150331.xsd#PropertyPlantAndEquipment" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/IntangibleAssetsAndGoodwill" xlink:href="amtx-20150331.xsd#IntangibleAssetsAndGoodwill" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/NotesPayable" xlink:href="amtx-20150331.xsd#NotesPayable" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/CommitmentsAndContingencies" xlink:href="amtx-20150331.xsd#CommitmentsAndContingencies" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/OutstandingWarrants" xlink:href="amtx-20150331.xsd#OutstandingWarrants" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/FairValueOfWarrants" xlink:href="amtx-20150331.xsd#FairValueOfWarrants" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/FairValueMeasurements" xlink:href="amtx-20150331.xsd#FairValueMeasurements" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/Stock-basedCompensation" xlink:href="amtx-20150331.xsd#Stock-basedCompensation" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/Agreements" xlink:href="amtx-20150331.xsd#Agreements" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/SegmentInformation" xlink:href="amtx-20150331.xsd#SegmentInformation" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/RelatedPartyTransactions" xlink:href="amtx-20150331.xsd#RelatedPartyTransactions" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/SubsequentEvents" xlink:href="amtx-20150331.xsd#SubsequentEvents" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/ManagementsPlan" xlink:href="amtx-20150331.xsd#ManagementsPlan" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/NotesOfActivitiesAndSummaryOfSignificantAccountingPoliciesPolicies" xlink:href="amtx-20150331.xsd#NotesOfActivitiesAndSummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/NotesOfActivitiesAndSummaryOfSignificantAccountingPoliciesTables" xlink:href="amtx-20150331.xsd#NotesOfActivitiesAndSummaryOfSignificantAccountingPoliciesTables" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/InventoryTables" xlink:href="amtx-20150331.xsd#InventoryTables" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/PropertyPlantAndEquipmentTables" xlink:href="amtx-20150331.xsd#PropertyPlantAndEquipmentTables" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/IntangibleAssetsAndGoodwillTables" xlink:href="amtx-20150331.xsd#IntangibleAssetsAndGoodwillTables" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/NotesPayableTables" xlink:href="amtx-20150331.xsd#NotesPayableTables" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/CommitmentsAndContingenciesTables" xlink:href="amtx-20150331.xsd#CommitmentsAndContingenciesTables" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/OutstandingWarrantsTables" xlink:href="amtx-20150331.xsd#OutstandingWarrantsTables" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/FairValueOfWarrantsTables" xlink:href="amtx-20150331.xsd#FairValueOfWarrantsTables" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/FairValueMeasurementsTables" xlink:href="amtx-20150331.xsd#FairValueMeasurementsTables" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/Stock-basedCompensationTables" xlink:href="amtx-20150331.xsd#Stock-basedCompensationTables" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/AgreementsTables" xlink:href="amtx-20150331.xsd#AgreementsTables" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/SegmentInformationTables" xlink:href="amtx-20150331.xsd#SegmentInformationTables" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/NatureOfActivitiesAndSummaryOfSignificantAccountingPoliciesDetails" xlink:href="amtx-20150331.xsd#NatureOfActivitiesAndSummaryOfSignificantAccountingPoliciesDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/NatureOfActivitiesAndSummaryOfSignificantAccountingPoliciesDetails1" xlink:href="amtx-20150331.xsd#NatureOfActivitiesAndSummaryOfSignificantAccountingPoliciesDetails1" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/NatureOfActivitiesAndSummaryOfSignificantAccountingPoliciesDetailsNarrative" xlink:href="amtx-20150331.xsd#NatureOfActivitiesAndSummaryOfSignificantAccountingPoliciesDetailsNarrative" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/InventoryDetails" xlink:href="amtx-20150331.xsd#InventoryDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/PropertyPlantAndEquipmentDetails" xlink:href="amtx-20150331.xsd#PropertyPlantAndEquipmentDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/PropertyPlantAndEquipmentDetailsNarrative" xlink:href="amtx-20150331.xsd#PropertyPlantAndEquipmentDetailsNarrative" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/IntangibleAssetsAndGoodwillDetails" xlink:href="amtx-20150331.xsd#IntangibleAssetsAndGoodwillDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/IntangibleAssetsAndGoodwillDetailsNarrative" xlink:href="amtx-20150331.xsd#IntangibleAssetsAndGoodwillDetailsNarrative" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/NotesPayableDetails" xlink:href="amtx-20150331.xsd#NotesPayableDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/NotesPayableDetails1" xlink:href="amtx-20150331.xsd#NotesPayableDetails1" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/NotesPayableDetailsNarrative" xlink:href="amtx-20150331.xsd#NotesPayableDetailsNarrative" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/CommitmentsAndContingenciesDetails" xlink:href="amtx-20150331.xsd#CommitmentsAndContingenciesDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/CommitmentsAndContingenciesDetailsNarrative" xlink:href="amtx-20150331.xsd#CommitmentsAndContingenciesDetailsNarrative" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/OutstandingWarrantsDetails" xlink:href="amtx-20150331.xsd#OutstandingWarrantsDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/OutstandingWarrantsDetails1" xlink:href="amtx-20150331.xsd#OutstandingWarrantsDetails1" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/FairValueOfWarrantsDetails" xlink:href="amtx-20150331.xsd#FairValueOfWarrantsDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/FairValueMeasurementsDetails" xlink:href="amtx-20150331.xsd#FairValueMeasurementsDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/FairValueMeasurementsDetails1" xlink:href="amtx-20150331.xsd#FairValueMeasurementsDetails1" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/Stock-basedCompensationDetails" xlink:href="amtx-20150331.xsd#Stock-basedCompensationDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/Stock-basedCompensationDetails1" xlink:href="amtx-20150331.xsd#Stock-basedCompensationDetails1" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/AgreementsDetails" xlink:href="amtx-20150331.xsd#AgreementsDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/AgreementsDetailsNarrative" xlink:href="amtx-20150331.xsd#AgreementsDetailsNarrative" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/SegmentInformationDetails" xlink:href="amtx-20150331.xsd#SegmentInformationDetails" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/SegmentInformationDetails1" xlink:href="amtx-20150331.xsd#SegmentInformationDetails1" xlink:type="simple" />
    <link:roleRef roleURI="http://aemetis.com/role/RelatedPartyTransactionsDetailsNarrative" xlink:href="amtx-20150331.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://aemetis.com/role/DocumentAndEntityInformation" xlink:title="00000001 - Document - Document and Entity Information" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/ConsolidatedCondensedBalanceSheets" xlink:title="00000002 - Statement - CONSOLIDATED CONDENSED BALANCE SHEETS (Unaudited)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/ConsolidatedCondensedBalanceSheetsParenthetical" xlink:title="00000003 - Statement - CONSOLIDATED CONDENSED BALANCE SHEETS (Unaudited) (Parenthetical)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/ConsolidatedCondensedStatementsOfOperationsAndComprehensiveIncomeLoss" xlink:title="00000004 - Statement - CONSOLIDATED CONDENSED STATEMENTS OF OPERATIONS AND COMPREHENSIVE INCOME (LOSS) (Unaudited)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/ConsolidatedCondensedStatementsOfCashFlows" xlink:title="00000005 - Statement - CONSOLIDATED CONDENSED STATEMENTS OF CASH FLOWS (Unaudited)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/NotesOfActivitiesAndSummaryOfSignificantAccountingPolicies" xlink:title="00000006 - Disclosure - 1. Nature of Activities and Summary of Significant Accounting Policies" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/Inventory" xlink:title="00000007 - Disclosure - 2. Inventory" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/PropertyPlantAndEquipment" xlink:title="00000008 - Disclosure - 3. Property, Plant and Equipment" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/IntangibleAssetsAndGoodwill" xlink:title="00000009 - Disclosure - 4. Intangible Assets and Goodwill" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/NotesPayable" xlink:title="00000010 - Disclosure - 5. Notes Payable" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/CommitmentsAndContingencies" xlink:title="00000011 - Disclosure - 6. Commitments and Contingencies" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/OutstandingWarrants" xlink:title="00000012 - Disclosure - 7. Outstanding Warrants" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/FairValueOfWarrants" xlink:title="00000013 - Disclosure - 8. Fair Value of Warrants" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/FairValueMeasurements" xlink:title="00000014 - Disclosure - 9. Fair Value Measurements" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/Stock-basedCompensation" xlink:title="00000015 - Disclosure - 10. Stock-Based Compensation" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/Agreements" xlink:title="00000016 - Disclosure - 11. Agreements" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/SegmentInformation" xlink:title="00000017 - Disclosure - 12. Segment Information" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/RelatedPartyTransactions" xlink:title="00000018 - Disclosure - 13. Related Party Transactions" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/SubsequentEvents" xlink:title="00000019 - Disclosure - 14. Subsequent Events" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/ManagementsPlan" xlink:title="00000020 - Disclosure - 15. Management's Plan" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/NotesOfActivitiesAndSummaryOfSignificantAccountingPoliciesPolicies" xlink:title="00000021 - Disclosure - 1. Nature of Activities and Summary of Significant Accounting Policies (Policies)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/NotesOfActivitiesAndSummaryOfSignificantAccountingPoliciesTables" xlink:title="00000022 - Disclosure - 1. Nature of Activities and Summary of Significant Accounting Policies (Tables)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/InventoryTables" xlink:title="00000023 - Disclosure - 2. Inventory (Tables)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/PropertyPlantAndEquipmentTables" xlink:title="00000024 - Disclosure - 3. Property, Plant and Equipment (Tables)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/IntangibleAssetsAndGoodwillTables" xlink:title="00000025 - Disclosure - 4. Intangible Assets and Goodwill (Tables)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/NotesPayableTables" xlink:title="00000026 - Disclosure - 5. Notes Payable (Tables)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/CommitmentsAndContingenciesTables" xlink:title="00000027 - Disclosure - 6. Commitments and Contingencies (Tables)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/OutstandingWarrantsTables" xlink:title="00000028 - Disclosure - 7. Outstanding Warrants (Tables)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/FairValueOfWarrantsTables" xlink:title="00000029 - Disclosure - 8. Fair Value of Warrants (Tables)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/FairValueMeasurementsTables" xlink:title="00000030 - Disclosure - 9. Fair Value Measurements (Tables)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/Stock-basedCompensationTables" xlink:title="00000031 - Disclosure - 10. Stock-Based Compensation (Tables)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/AgreementsTables" xlink:title="00000032 - Disclosure - 11. Agreements (Tables)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/SegmentInformationTables" xlink:title="00000033 - Disclosure - 12. Segment Information (Tables)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/NatureOfActivitiesAndSummaryOfSignificantAccountingPoliciesDetails" xlink:title="00000034 - Disclosure - 1. Nature of Activities and Summary of Significant Accounting Policies (Details)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/NatureOfActivitiesAndSummaryOfSignificantAccountingPoliciesDetails1" xlink:title="00000035 - Disclosure - 1. Nature of Activities and Summary of Significant Accounting Policies (Details 1)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/NatureOfActivitiesAndSummaryOfSignificantAccountingPoliciesDetailsNarrative" xlink:title="00000036 - Disclosure - 1. Nature of Activities and Summary of Significant Accounting Policies (Details Narrative)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/InventoryDetails" xlink:title="00000037 - Disclosure - 2. Inventory (Details)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/PropertyPlantAndEquipmentDetails" xlink:title="00000038 - Disclosure - 3. Property, Plant and Equipment (Details)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/PropertyPlantAndEquipmentDetailsNarrative" xlink:title="00000039 - Disclosure - 3. Property, Plant and Equipment (Details Narrative)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/IntangibleAssetsAndGoodwillDetails" xlink:title="00000040 - Disclosure - 4. Intangible Assets and Goodwill (Details)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/IntangibleAssetsAndGoodwillDetailsNarrative" xlink:title="00000041 - Disclosure - 4. Intangible Assets and Goodwill (Details Narrative)">
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-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/2014/elts/us-gaap-2014-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-gaapStatementTable" xlink:to="loc_us-gaapFiniteLivedIntangibleAssetsByMajorClassAxis" xlink:type="arc" order="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-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/2014/elts/us-gaap-2014-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/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_PatentsMember" xlink:label="loc_us-gaapPatentsMember_30" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="loc_us-gaapPatentsMember_30" xlink:type="arc" order="31" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_InProcessResearchAndDevelopmentMember" xlink:label="loc_us-gaapInProcessResearchAndDevelopmentMember_40" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="loc_us-gaapInProcessResearchAndDevelopmentMember_40" xlink:type="arc" order="41" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaapAmortizationOfIntangibleAssets_80" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAmortizationOfIntangibleAssets_80" xlink:type="arc" order="0" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="loc_us-gaapFiniteLivedIntangibleAssetsNet_80" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapFiniteLivedIntangibleAssetsNet_80" xlink:type="arc" order="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaapGoodwill_80" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapGoodwill_80" xlink:type="arc" order="2" />
    </link:definitionLink>
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/NotesPayableDetails" xlink:title="00000042 - Disclosure - 5. Notes Payable (Details)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/NotesPayableDetails1" xlink:title="00000043 - Disclosure - 5. Notes Payable (Details 1)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/NotesPayableDetailsNarrative" xlink:title="00000044 - Disclosure - 5. Notes Payable (Details Narrative)">
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-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/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaapDebtInstrumentAxis" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapDebtInstrumentAxis" xlink:type="arc" order="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaapScenarioUnspecifiedDomain" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapDebtInstrumentAxis" xlink:to="loc_us-gaapScenarioUnspecifiedDomain" xlink:type="arc" order="20" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaapScenarioUnspecifiedDomain_10" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapDebtInstrumentAxis" xlink:to="loc_us-gaapScenarioUnspecifiedDomain_10" xlink:type="arc" order="30" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_DebtInstrument1Member" xlink:label="loc_AMTXDebtInstrument1Member_0" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapScenarioUnspecifiedDomain" xlink:to="loc_AMTXDebtInstrument1Member_0" xlink:type="arc" order="1" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_DebtInstrument2Member" xlink:label="loc_AMTXDebtInstrument2Member_10" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapScenarioUnspecifiedDomain" xlink:to="loc_AMTXDebtInstrument2Member_10" xlink:type="arc" order="11" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_DebtInstrument3Member" xlink:label="loc_AMTXDebtInstrument3Member_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapScenarioUnspecifiedDomain" xlink:to="loc_AMTXDebtInstrument3Member_20" xlink:type="arc" order="21" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_DebtInstrument4Member" xlink:label="loc_AMTXDebtInstrument4Member_30" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapScenarioUnspecifiedDomain" xlink:to="loc_AMTXDebtInstrument4Member_30" xlink:type="arc" order="31" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_DebtInstrument5Member" xlink:label="loc_AMTXDebtInstrument5Member_40" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapScenarioUnspecifiedDomain" xlink:to="loc_AMTXDebtInstrument5Member_40" xlink:type="arc" order="41" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_DebtInstrument6Member" xlink:label="loc_AMTXDebtInstrument6Member_50" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapScenarioUnspecifiedDomain" xlink:to="loc_AMTXDebtInstrument6Member_50" xlink:type="arc" order="51" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_DebtInstrument7Member" xlink:label="loc_AMTXDebtInstrument7Member_70" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapScenarioUnspecifiedDomain" xlink:to="loc_AMTXDebtInstrument7Member_70" xlink:type="arc" order="71" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_DebtInstrument8Member" xlink:label="loc_AMTXDebtInstrument8Member_90" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapScenarioUnspecifiedDomain" xlink:to="loc_AMTXDebtInstrument8Member_90" xlink:type="arc" order="91" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_DebtInstrument9Member" xlink:label="loc_AMTXDebtInstrument9Member_100" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapScenarioUnspecifiedDomain" xlink:to="loc_AMTXDebtInstrument9Member_100" xlink:type="arc" order="101" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_PrincipalAndInterestOutstanding" xlink:label="loc_AMTXPrincipalAndInterestOutstanding_150" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_AMTXPrincipalAndInterestOutstanding_150" xlink:type="arc" order="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscount" xlink:label="loc_us-gaapDebtInstrumentUnamortizedDiscount_150" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDebtInstrumentUnamortizedDiscount_150" xlink:type="arc" order="2" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_UnamortizedDebtIssuanceExpense" xlink:label="loc_us-gaapUnamortizedDebtIssuanceExpense_150" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapUnamortizedDebtIssuanceExpense_150" xlink:type="arc" order="3" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_RepaymentsOfNotesPayable" xlink:label="loc_us-gaapRepaymentsOfNotesPayable_150" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapRepaymentsOfNotesPayable_150" xlink:type="arc" order="4" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_InterestPaid" xlink:label="loc_us-gaapInterestPaid_150" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapInterestPaid_150" xlink:type="arc" order="5" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_UnsecuredDebt" xlink:label="loc_us-gaapUnsecuredDebt_150" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapUnsecuredDebt_150" xlink:type="arc" order="6" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_OutstandingAccruedInterest" xlink:label="loc_AMTXOutstandingAccruedInterest_150" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_AMTXOutstandingAccruedInterest_150" xlink:type="arc" order="7" />
    </link:definitionLink>
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/CommitmentsAndContingenciesDetails" xlink:title="00000045 - Disclosure - 6. Commitments and Contingencies (Details)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/CommitmentsAndContingenciesDetailsNarrative" xlink:title="00000046 - Disclosure - 6. Commitments and Contingencies (Details Narrative)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/OutstandingWarrantsDetails" xlink:title="00000047 - Disclosure - 7. Outstanding Warrants (Details)">
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-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/2014/elts/us-gaap-2014-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/2014/elts/us-gaap-2014-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/2014/elts/us-gaap-2014-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/2014/elts/us-gaap-2014-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="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_20" xlink:type="arc" order="0" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_20" xlink:type="arc" order="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_20" xlink:type="arc" order="2" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1" xlink:label="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapSharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_20" xlink:type="arc" order="3" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExercisePrice_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExercisePrice_20" xlink:type="arc" order="4" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_SharePrice" xlink:label="loc_us-gaapSharePrice_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapSharePrice_20" xlink:type="arc" order="5" />
    </link:definitionLink>
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/OutstandingWarrantsDetails1" xlink:title="00000048 - Disclosure - 7. Outstanding Warrants (Details 1)">
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-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/2014/elts/us-gaap-2014-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/2014/elts/us-gaap-2014-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/2014/elts/us-gaap-2014-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/2014/elts/us-gaap-2014-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="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_20" xlink:type="arc" order="0" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_20" xlink:type="arc" order="1" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_NumberOfOptionsExercised" xlink:label="loc_AMTXNumberOfOptionsExercised_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_AMTXNumberOfOptionsExercised_20" xlink:type="arc" order="2" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_20" xlink:type="arc" order="4" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_20" xlink:type="arc" order="5" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_20" xlink:type="arc" order="6" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_WeightedAverageRemainingContractualLifeInYearsOutstandingBeginning" xlink:label="loc_AMTXWeightedAverageRemainingContractualLifeInYearsOutstandingBeginning_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_AMTXWeightedAverageRemainingContractualLifeInYearsOutstandingBeginning_20" xlink:type="arc" order="8" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_WeightedAverageRemainingContractualLifeInYearsOutstandingEnding" xlink:label="loc_AMTXWeightedAverageRemainingContractualLifeInYearsOutstandingEnding_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_AMTXWeightedAverageRemainingContractualLifeInYearsOutstandingEnding_20" xlink:type="arc" order="9" />
    </link:definitionLink>
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/FairValueOfWarrantsDetails" xlink:title="00000049 - Disclosure - 8. Fair Value of Warrants (Details)">
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-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/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaapRangeAxis" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapRangeAxis" xlink:type="arc" order="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaapRangeMember" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapRangeAxis" xlink:to="loc_us-gaapRangeMember" xlink:type="arc" order="20" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaapRangeMember_10" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapRangeAxis" xlink:to="loc_us-gaapRangeMember_10" xlink:type="arc" order="30" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaapMinimumMember_10" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRangeMember" xlink:to="loc_us-gaapMinimumMember_10" xlink:type="arc" order="11" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaapMaximumMember_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRangeMember" xlink:to="loc_us-gaapMaximumMember_20" xlink:type="arc" order="21" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueAssumptionsExpectedDividendRate" xlink:label="loc_us-gaapFairValueAssumptionsExpectedDividendRate_40" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapFairValueAssumptionsExpectedDividendRate_40" xlink:type="arc" order="0" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueAssumptionsRiskFreeInterestRate" xlink:label="loc_us-gaapFairValueAssumptionsRiskFreeInterestRate_40" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapFairValueAssumptionsRiskFreeInterestRate_40" xlink:type="arc" order="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueAssumptionsExpectedVolatilityRate" xlink:label="loc_us-gaapFairValueAssumptionsExpectedVolatilityRate_40" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapFairValueAssumptionsExpectedVolatilityRate_40" xlink:type="arc" order="2" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueAssumptionsExpectedTerm" xlink:label="loc_us-gaapFairValueAssumptionsExpectedTerm_40" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapFairValueAssumptionsExpectedTerm_40" xlink:type="arc" order="3" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueAssumptionsExercisePrice" xlink:label="loc_us-gaapFairValueAssumptionsExercisePrice_40" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapFairValueAssumptionsExercisePrice_40" xlink:type="arc" order="4" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_SharePrice" xlink:label="loc_us-gaapSharePrice_40" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapSharePrice_40" xlink:type="arc" order="5" />
    </link:definitionLink>
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/FairValueMeasurementsDetails" xlink:title="00000050 - Disclosure - 9. Fair Value Measurements (Details)">
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-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/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueByMeasurementBasisAxis" xlink:label="loc_us-gaapFairValueByMeasurementBasisAxis" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapFairValueByMeasurementBasisAxis" xlink:type="arc" order="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueDisclosureItemAmountsDomain" xlink:label="loc_us-gaapFairValueDisclosureItemAmountsDomain" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaapFairValueByMeasurementBasisAxis" xlink:to="loc_us-gaapFairValueDisclosureItemAmountsDomain" xlink:type="arc" order="20" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueDisclosureItemAmountsDomain" xlink:label="loc_us-gaapFairValueDisclosureItemAmountsDomain_10" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xbrldt:contextElement="segment" xlink:from="loc_us-gaapFairValueByMeasurementBasisAxis" xlink:to="loc_us-gaapFairValueDisclosureItemAmountsDomain_10" xlink:type="arc" order="30" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueInputsLevel1Member" xlink:label="loc_us-gaapFairValueInputsLevel1Member_0" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFairValueDisclosureItemAmountsDomain" xlink:to="loc_us-gaapFairValueInputsLevel1Member_0" xlink:type="arc" order="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaapFairValueInputsLevel2Member_10" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapFairValueDisclosureItemAmountsDomain" xlink:to="loc_us-gaapFairValueInputsLevel2Member_10" xlink:type="arc" order="11" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-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-gaapFairValueDisclosureItemAmountsDomain" xlink:to="loc_us-gaapFairValueInputsLevel3Member_20" xlink:type="arc" order="21" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability" xlink:label="loc_us-gaapDerivativeFairValueOfDerivativeLiability_50" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapDerivativeFairValueOfDerivativeLiability_50" xlink:type="arc" order="1" />
    </link:definitionLink>
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/FairValueMeasurementsDetails1" xlink:title="00000051 - Disclosure - 9. Fair Value Measurements (Details 1)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/Stock-basedCompensationDetails" xlink:title="00000052 - Disclosure - 10. Stock-Based Compensation (Details)">
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-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/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:label="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaapStatementTable" xlink:to="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:type="arc" order="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-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/2014/elts/us-gaap-2014-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="amtx-20150331.xsd#AMTX_EmployeeStockPlanMember" xlink:label="loc_AMTXEmployeeStockPlanMember_0" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="loc_AMTXEmployeeStockPlanMember_0" xlink:type="arc" order="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_20" xlink:type="arc" order="0" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_NumberOfShareAuthorized" xlink:label="loc_AMTXNumberOfShareAuthorized_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_AMTXNumberOfShareAuthorized_20" xlink:type="arc" order="1" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_NumberOfSharesGranted" xlink:label="loc_AMTXNumberOfSharesGranted_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_AMTXNumberOfSharesGranted_20" xlink:type="arc" order="2" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_NumberOfSharesExercised" xlink:label="loc_AMTXNumberOfSharesExercised_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_AMTXNumberOfSharesExercised_20" xlink:type="arc" order="3" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_NumberOfSharesForfeitedexpired" xlink:label="loc_AMTXNumberOfSharesForfeitedexpired_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_AMTXNumberOfSharesForfeitedexpired_20" xlink:type="arc" order="4" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_NumberOfSharesOutstandingBeginning" xlink:label="loc_AMTXNumberOfSharesOutstandingBeginning_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_AMTXNumberOfSharesOutstandingBeginning_20" xlink:type="arc" order="6" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_NumberOfSharesAuthorized" xlink:label="loc_AMTXNumberOfSharesAuthorized_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_AMTXNumberOfSharesAuthorized_20" xlink:type="arc" order="7" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_20" xlink:type="arc" order="8" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_NumberOfSharesExercised1" xlink:label="loc_AMTXNumberOfSharesExercised1_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_AMTXNumberOfSharesExercised1_20" xlink:type="arc" order="9" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriod" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriod_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriod_20" xlink:type="arc" order="10" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_NumberOfSharesOutstandingEnding" xlink:label="loc_AMTXNumberOfSharesOutstandingEnding_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_AMTXNumberOfSharesOutstandingEnding_20" xlink:type="arc" order="11" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_20" xlink:type="arc" order="12" />
      <link:loc xlink:type="locator" xlink:href="amtx-20150331.xsd#AMTX_WeightedAverageExercisePriceAuthorized" xlink:label="loc_AMTXWeightedAverageExercisePriceAuthorized_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_AMTXWeightedAverageExercisePriceAuthorized_20" xlink:type="arc" order="13" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_20" xlink:type="arc" order="14" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_20" xlink:type="arc" order="15" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriodWeightedAverageExercisePrice_20" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriodWeightedAverageExercisePrice_20" xlink:type="arc" order="16" />
    </link:definitionLink>
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/Stock-basedCompensationDetails1" xlink:title="00000053 - Disclosure - 10. Stock-Based Compensation (Details 1)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/AgreementsDetails" xlink:title="00000054 - Disclosure - 11. Agreements (Details)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/AgreementsDetailsNarrative" xlink:title="00000055 - Disclosure - 11. Agreements (Details Narrative)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/SegmentInformationDetails" xlink:title="00000056 - Disclosure - 12. Segment Information (Details)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/SegmentInformationDetails1" xlink:title="00000057 - Disclosure - 12. Segment Information (Details 1)" />
    <link:definitionLink xlink:type="extended" xlink:role="http://aemetis.com/role/RelatedPartyTransactionsDetailsNarrative" xlink:title="00000058 - Disclosure - 13. Related Party Transactions (Details Narrative)">
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaapStatementLineItems" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-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/2014/elts/us-gaap-2014-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/2014/elts/us-gaap-2014-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/2014/elts/us-gaap-2014-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="amtx-20150331.xsd#AMTX_EricMcAfeeMember" xlink:label="loc_AMTXEricMcAfeeMember_0" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapRelatedPartyDomain" xlink:to="loc_AMTXEricMcAfeeMember_0" xlink:type="arc" order="1" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_AccountsPayableRelatedPartiesCurrent" xlink:label="loc_us-gaapAccountsPayableRelatedPartiesCurrent_50" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapAccountsPayableRelatedPartiesCurrent_50" xlink:type="arc" order="0" />
      <link:loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2014/elts/us-gaap-2014-01-31.xsd#us-gaap_RelatedPartyTransactionAmountsOfTransaction" xlink:label="loc_us-gaapRelatedPartyTransactionAmountsOfTransaction_50" />
      <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaapStatementLineItems" xlink:to="loc_us-gaapRelatedPartyTransactionAmountsOfTransaction_50" xlink:type="arc" order="1" />
    </link:definitionLink>
</link:linkbase>
