<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:16b3d747-c650-4bc0-b119-9a0880ae19bc,g:c48ef896-bbe8-4c05-8c97-3d946f48cd13-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:sanm="http://www.sanmina.com/20231230" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:dtr-types1="http://www.xbrl.org/dtr/type/2020-01-21" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:dtr-types="http://www.xbrl.org/dtr/type/2022-03-31" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.sanmina.com/20231230">
  <xs:import namespace="http://fasb.org/srt/2023" schemaLocation="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd"/>
  <xs:import namespace="http://fasb.org/us-gaap/2023" schemaLocation="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd"/>
  <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="http://www.xbrl.org/2003/xlink-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/2003/instance" schemaLocation="http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/2003/linkbase" schemaLocation="http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/dtr/type/2020-01-21" schemaLocation="https://www.xbrl.org/dtr/type/2020-01-21/types.xsd"/>
  <xs:import namespace="http://www.xbrl.org/dtr/type/2022-03-31" schemaLocation="https://www.xbrl.org/dtr/type/2022-03-31/types.xsd"/>
  <xs:import namespace="http://xbrl.org/2005/xbrldt" schemaLocation="http://www.xbrl.org/2005/xbrldt-2005.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/country/2023" schemaLocation="https://xbrl.sec.gov/country/2023/country-2023.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/dei/2023" schemaLocation="https://xbrl.sec.gov/dei/2023/dei-2023.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/ecd/2023" schemaLocation="https://xbrl.sec.gov/ecd/2023/ecd-2023.xsd"/>
  <xs:annotation>
    <xs:appinfo>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="sanm-20231230_pre.xml" xlink:role="http://www.xbrl.org/2003/role/presentationLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="sanm-20231230_def.xml" xlink:role="http://www.xbrl.org/2003/role/definitionLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="sanm-20231230_lab.xml" xlink:role="http://www.xbrl.org/2003/role/labelLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="sanm-20231230_cal.xml" xlink:role="http://www.xbrl.org/2003/role/calculationLinkbaseRef" xlink:type="simple"/>
      <link:roleType id="DocumentandEntityInformationDocument" roleURI="http://www.sanmina.com/role/DocumentandEntityInformationDocument">
        <link:definition>0000001 - Document - Document and Entity Information Document</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CondensedConsolidatedBalanceSheets" roleURI="http://www.sanmina.com/role/CondensedConsolidatedBalanceSheets">
        <link:definition>0000002 - Statement - Condensed Consolidated Balance Sheets</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CondensedConsolidatedStatementsofIncome" roleURI="http://www.sanmina.com/role/CondensedConsolidatedStatementsofIncome">
        <link:definition>0000003 - Statement - Condensed Consolidated Statements of Income</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CondensedConsolidatedStatementofComprehensiveIncomeLoss" roleURI="http://www.sanmina.com/role/CondensedConsolidatedStatementofComprehensiveIncomeLoss">
        <link:definition>0000004 - Statement - Condensed Consolidated Statement of Comprehensive Income (Loss)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CondensedConsolidatedStatementsofStockholdersEquityStatement" roleURI="http://www.sanmina.com/role/CondensedConsolidatedStatementsofStockholdersEquityStatement">
        <link:definition>0000005 - Statement - Condensed Consolidated Statements of Stockholder's Equity Statement</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CondensedConsolidatedStatementsofCashFlows" roleURI="http://www.sanmina.com/role/CondensedConsolidatedStatementsofCashFlows">
        <link:definition>0000006 - Statement - Condensed Consolidated Statements of Cash Flows</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CondensedConsolidatedBalanceSheetsParentheticals" roleURI="http://www.sanmina.com/role/CondensedConsolidatedBalanceSheetsParentheticals">
        <link:definition>0000007 - Statement - Condensed Consolidated Balance Sheets (Parentheticals)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BASISOFPRESENTATION" roleURI="http://www.sanmina.com/role/BASISOFPRESENTATION">
        <link:definition>0000008 - Disclosure - BASIS OF PRESENTATION</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="REVENUERECOGNITION" roleURI="http://www.sanmina.com/role/REVENUERECOGNITION">
        <link:definition>0000009 - Disclosure - REVENUE RECOGNITION</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FINANCIALINSTRUMENTS" roleURI="http://www.sanmina.com/role/FINANCIALINSTRUMENTS">
        <link:definition>0000010 - Disclosure - FINANCIAL INSTRUMENTS</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DEBT" roleURI="http://www.sanmina.com/role/DEBT">
        <link:definition>0000011 - Disclosure - DEBT</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LEASES" roleURI="http://www.sanmina.com/role/LEASES">
        <link:definition>0000012 - Disclosure - LEASES</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ACCOUNTSRECEIVABLESALEPROGRAM" roleURI="http://www.sanmina.com/role/ACCOUNTSRECEIVABLESALEPROGRAM">
        <link:definition>0000013 - Disclosure - ACCOUNTS RECEIVABLE SALE PROGRAM</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="COMMITMENTSANDCONTINGENCIES" roleURI="http://www.sanmina.com/role/COMMITMENTSANDCONTINGENCIES">
        <link:definition>0000014 - Disclosure - COMMITMENTS AND CONTINGENCIES</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="INCOMETAX" roleURI="http://www.sanmina.com/role/INCOMETAX">
        <link:definition>0000015 - Disclosure - INCOME TAX</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="STOCKHOLDERSEQUITY" roleURI="http://www.sanmina.com/role/STOCKHOLDERSEQUITY">
        <link:definition>0000016 - Disclosure - STOCKHOLDERS' EQUITY</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BUSINESSSEGMENTGEOGRAPHICANDCUSTOMERINFORMATION" roleURI="http://www.sanmina.com/role/BUSINESSSEGMENTGEOGRAPHICANDCUSTOMERINFORMATION">
        <link:definition>0000017 - Disclosure - BUSINESS SEGMENT, GEOGRAPHIC AND CUSTOMER INFORMATION</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="EARNINGSPERSHARE" roleURI="http://www.sanmina.com/role/EARNINGSPERSHARE">
        <link:definition>0000018 - Disclosure - EARNINGS PER SHARE</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="STOCKBASEDCOMPENSATION" roleURI="http://www.sanmina.com/role/STOCKBASEDCOMPENSATION">
        <link:definition>0000019 - Disclosure - STOCK-BASED COMPENSATION</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ACCOUNTINGPOLICIESPolicies" roleURI="http://www.sanmina.com/role/ACCOUNTINGPOLICIESPolicies">
        <link:definition>9954471 - Disclosure - ACCOUNTING POLICIES (Policies)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="REVENUERECOGNITIONTables" roleURI="http://www.sanmina.com/role/REVENUERECOGNITIONTables">
        <link:definition>9954472 - Disclosure - REVENUE RECOGNITION (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FINANCIALINSTRUMENTSDerivativeFinancialInstrumentsTables" roleURI="http://www.sanmina.com/role/FINANCIALINSTRUMENTSDerivativeFinancialInstrumentsTables">
        <link:definition>9954473 - Disclosure - FINANCIAL INSTRUMENTS - Derivative Financial Instruments (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DEBTTables" roleURI="http://www.sanmina.com/role/DEBTTables">
        <link:definition>9954474 - Disclosure - DEBT (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LEASESTables" roleURI="http://www.sanmina.com/role/LEASESTables">
        <link:definition>9954475 - Disclosure - LEASES (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="STOCKHOLDERSEQUITYTables" roleURI="http://www.sanmina.com/role/STOCKHOLDERSEQUITYTables">
        <link:definition>9954476 - Disclosure - STOCKHOLDERS' EQUITY (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BUSINESSSEGMENTGEOGRAPHICANDCUSTOMERINFORMATIONTables" roleURI="http://www.sanmina.com/role/BUSINESSSEGMENTGEOGRAPHICANDCUSTOMERINFORMATIONTables">
        <link:definition>9954477 - Disclosure - BUSINESS SEGMENT, GEOGRAPHIC AND CUSTOMER INFORMATION (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="EARNINGSPERSHARETables" roleURI="http://www.sanmina.com/role/EARNINGSPERSHARETables">
        <link:definition>9954478 - Disclosure - EARNINGS PER SHARE (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="STOCKBASEDCOMPENSATIONTables" roleURI="http://www.sanmina.com/role/STOCKBASEDCOMPENSATIONTables">
        <link:definition>9954479 - Disclosure - STOCK-BASED COMPENSATION (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="REVENUERECOGNITIONDisagregationofRevenueDetails" roleURI="http://www.sanmina.com/role/REVENUERECOGNITIONDisagregationofRevenueDetails">
        <link:definition>9954480 - Disclosure - REVENUE RECOGNITION - Disagregation of Revenue (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FINANCIALINSTRUMENTSFairValueDetails" roleURI="http://www.sanmina.com/role/FINANCIALINSTRUMENTSFairValueDetails">
        <link:definition>9954481 - Disclosure - FINANCIAL INSTRUMENTS - Fair Value (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FINANCIALINSTRUMENTSDerivativesDetails" roleURI="http://www.sanmina.com/role/FINANCIALINSTRUMENTSDerivativesDetails">
        <link:definition>9954482 - Disclosure - FINANCIAL INSTRUMENTS - Derivatives (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DEBTDebtScheduleDetails" roleURI="http://www.sanmina.com/role/DEBTDebtScheduleDetails">
        <link:definition>9954483 - Disclosure - DEBT - Debt Schedule (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DEBTLineofCreditFacilityDetails" roleURI="http://www.sanmina.com/role/DEBTLineofCreditFacilityDetails">
        <link:definition>9954484 - Disclosure - DEBT - Line of Credit Facility (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LEASESLesseeLeaseDescriptionDetails" roleURI="http://www.sanmina.com/role/LEASESLesseeLeaseDescriptionDetails">
        <link:definition>9954485 - Disclosure - LEASES - Lessee Lease Description (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LEASESLeasesDetail" roleURI="http://www.sanmina.com/role/LEASESLeasesDetail">
        <link:definition>9954486 - Disclosure - LEASES - Leases (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LEASESLeaseCostDetails" roleURI="http://www.sanmina.com/role/LEASESLeaseCostDetails">
        <link:definition>9954487 - Disclosure - LEASES - Lease Cost (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LEASESFutureLeaseLiabilityDetails" roleURI="http://www.sanmina.com/role/LEASESFutureLeaseLiabilityDetails">
        <link:definition>9954488 - Disclosure - LEASES - Future Lease Liability (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ACCOUNTSRECEIVABLESALEPROGRAMDetails" roleURI="http://www.sanmina.com/role/ACCOUNTSRECEIVABLESALEPROGRAMDetails">
        <link:definition>9954489 - Disclosure - ACCOUNTS RECEIVABLE SALE PROGRAM (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="COMMITMENTSANDCONTINGENCIESContingenciesDetails" roleURI="http://www.sanmina.com/role/COMMITMENTSANDCONTINGENCIESContingenciesDetails">
        <link:definition>9954490 - Disclosure - COMMITMENTS AND CONTINGENCIES - Contingencies (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="INCOMETAXDetails" roleURI="http://www.sanmina.com/role/INCOMETAXDetails">
        <link:definition>9954491 - Disclosure - INCOME TAX (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="STOCKHOLDERSEQUITYDetails" roleURI="http://www.sanmina.com/role/STOCKHOLDERSEQUITYDetails">
        <link:definition>9954492 - Disclosure - STOCKHOLDERS' EQUITY (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="STOCKHOLDERSEQUITYStockRepurchaseDetails" roleURI="http://www.sanmina.com/role/STOCKHOLDERSEQUITYStockRepurchaseDetails">
        <link:definition>9954493 - Disclosure - STOCKHOLDERS' EQUITY - Stock Repurchase (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="STOCKHOLDERSEQUITYNoncontrollingInterestDetails" roleURI="http://www.sanmina.com/role/STOCKHOLDERSEQUITYNoncontrollingInterestDetails">
        <link:definition>9954494 - Disclosure - STOCKHOLDERS' EQUITY - Non-controlling Interest (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BUSINESSSEGMENTGEOGRAPHICANDCUSTOMERINFORMATIONRevenueandGrossProfitbySegmentDetails" roleURI="http://www.sanmina.com/role/BUSINESSSEGMENTGEOGRAPHICANDCUSTOMERINFORMATIONRevenueandGrossProfitbySegmentDetails">
        <link:definition>9954495 - Disclosure - BUSINESS SEGMENT, GEOGRAPHIC AND CUSTOMER INFORMATION - Revenue and Gross Profit by Segment (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="EARNINGSPERSHAREDetails" roleURI="http://www.sanmina.com/role/EARNINGSPERSHAREDetails">
        <link:definition>9954496 - Disclosure - EARNINGS PER SHARE (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="STOCKBASEDCOMPENSATIONShareBasedCompensationArrangementsDetails" roleURI="http://www.sanmina.com/role/STOCKBASEDCOMPENSATIONShareBasedCompensationArrangementsDetails">
        <link:definition>9954497 - Disclosure - STOCK-BASED COMPENSATION - Share-Based Compensation Arrangements (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="STOCKBASEDCOMPENSATIONSharesAuthorizedforFutureIssuanceandAvailableforGrantDetails" roleURI="http://www.sanmina.com/role/STOCKBASEDCOMPENSATIONSharesAuthorizedforFutureIssuanceandAvailableforGrantDetails">
        <link:definition>9954498 - Disclosure - STOCK-BASED COMPENSATION - Shares Authorized for Future Issuance and Available for Grant (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="STOCKBASEDCOMPENSATIONAdditionalInformationDetails" roleURI="http://www.sanmina.com/role/STOCKBASEDCOMPENSATIONAdditionalInformationDetails">
        <link:definition>9954499 - Disclosure - STOCK-BASED COMPENSATION - Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="STOCKBASEDCOMPENSATIONRestrictedStockRollforwardDetails" roleURI="http://www.sanmina.com/role/STOCKBASEDCOMPENSATIONRestrictedStockRollforwardDetails">
        <link:definition>9954500 - Disclosure - STOCK-BASED COMPENSATION - Restricted Stock Rollforward (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="STOCKBASEDCOMPENSATIONUnrecognizedStockBasedCompensationExpenseDetails" roleURI="http://www.sanmina.com/role/STOCKBASEDCOMPENSATIONUnrecognizedStockBasedCompensationExpenseDetails">
        <link:definition>9954501 - Disclosure - STOCK-BASED COMPENSATION - Unrecognized Stock Based Compensation Expense (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
    </xs:appinfo>
  </xs:annotation>
  <xs:element id="sanm_SaleofAccountsReceivableDomain" abstract="true" name="SaleofAccountsReceivableDomain" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="sanm_UnrecognizedStockBasedCompensationExpenseTable" abstract="true" name="UnrecognizedStockBasedCompensationExpenseTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="sanm_AssetandLiabilitiesLesseeTableTextBlock" abstract="false" name="AssetandLiabilitiesLesseeTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="sanm_JointVentureWithRelianceMember" abstract="true" name="JointVentureWithRelianceMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="sanm_PercentofNetSalesTransferredOverTime" abstract="false" name="PercentofNetSalesTransferredOverTime" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="sanm_IMSThirdPartyRevenueMember" abstract="true" name="IMSThirdPartyRevenueMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="sanm_PerformanceOfManufacturingServiceAgreementMember" abstract="true" name="PerformanceOfManufacturingServiceAgreementMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="sanm_PercentageOfNetSalesToAmericasNetSales" abstract="false" name="PercentageOfNetSalesToAmericasNetSales" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="sanm_CashEquivalents" abstract="false" name="CashEquivalents" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="sanm_NumberofCommonSharesMember" abstract="true" name="NumberofCommonSharesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="sanm_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedAndCancelled" abstract="false" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedAndCancelled" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="sanm_PotentialadjustmenttoPSUs" abstract="false" name="PotentialadjustmenttoPSUs" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="sanm_FifthAmendedAndRestatedCreditAgreementMember" abstract="true" name="FifthAmendedAndRestatedCreditAgreementMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="sanm_ShareBasedCompensationArrangementByShareBasedPaymentAwardRestrictedStockNonvestedAndExpectedToVestAggregateIntrinsicValue" abstract="false" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardRestrictedStockNonvestedAndExpectedToVestAggregateIntrinsicValue" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="sanm_SaleofAccountsReceivableAxis" abstract="true" name="SaleofAccountsReceivableAxis" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType"/>
  <xs:element id="sanm_DiscountOnSoldReceivables" abstract="false" name="DiscountOnSoldReceivables" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="sanm_OperatingLeasesRentExpenseNetOfSubleaseIncome" abstract="false" name="OperatingLeasesRentExpenseNetOfSubleaseIncome" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="sanm_SharesRepurchased" abstract="false" name="SharesRepurchased" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="sanm_ShareRepurchases" abstract="false" name="ShareRepurchases" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="sanm_WeightedAverageRemainingContractualTermAbstract" abstract="true" name="WeightedAverageRemainingContractualTermAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="sanm_CPSThirdPartyRevenueMember" abstract="true" name="CPSThirdPartyRevenueMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="sanm_ProceedsFromSaleOfNoncontrollingInterest" abstract="false" name="ProceedsFromSaleOfNoncontrollingInterest" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="sanm_RepurchasesOfCommonStockIncludingExciseTax" abstract="false" name="RepurchasesOfCommonStockIncludingExciseTax" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="sanm_RawMaterialsAsAPercentageOfTotalInventory" abstract="false" name="RawMaterialsAsAPercentageOfTotalInventory" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="sanm_FaceValueofReceivableSoldPercentage" abstract="false" name="FaceValueofReceivableSoldPercentage" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="sanm_WeightedAverageGrantDateFairValueRestrictedStockAbstract" abstract="true" name="WeightedAverageGrantDateFairValueRestrictedStockAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="sanm_IndustrialMedicalAutomotiveandDefenseMember" abstract="true" name="IndustrialMedicalAutomotiveandDefenseMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="sanm_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedAndExpectedToVestWeightedAverageGrantDateFairValue" abstract="false" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedAndExpectedToVestWeightedAverageGrantDateFairValue" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:perShareItemType"/>
  <xs:element id="sanm_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedAndExpectedToVestNumber" abstract="false" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedAndExpectedToVestNumber" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="sanm_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedAndExpectedToVestWeightedAverageRemainingContractualTerm" abstract="false" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedAndExpectedToVestWeightedAverageRemainingContractualTerm" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="sanm_UnrecognizedCompensationCostAndWeightedAveragePeriodLineItems" abstract="true" name="UnrecognizedCompensationCostAndWeightedAveragePeriodLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="sanm_AmountCollectedButNotRemittedtoFinancialInstitutions" abstract="false" name="AmountCollectedButNotRemittedtoFinancialInstitutions" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="sanm_A300MAggregateNotionalValueOfSwapsMember" abstract="true" name="A300MAggregateNotionalValueOfSwapsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="sanm_NotionalValueOfInterestRateSwapDomain" abstract="true" name="NotionalValueOfInterestRateSwapDomain" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="sanm_ShareBasedCompensationArrangementsByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedAndCancelledWeightedAverageGrantDateFairValue" abstract="false" name="ShareBasedCompensationArrangementsByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedAndCancelledWeightedAverageGrantDateFairValue" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:perShareItemType"/>
  <xs:element id="sanm_CommunicationsNetworksAndCloudInfrastructureMember" abstract="true" name="CommunicationsNetworksAndCloudInfrastructureMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="sanm_Numberofcustomersrepresenting10ormoreofnetsales" abstract="false" name="Numberofcustomersrepresenting10ormoreofnetsales" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="sanm_EndMarketDomain" abstract="true" name="EndMarketDomain" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="sanm_PotentialPayoutPercentage" abstract="false" name="PotentialPayoutPercentage" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="sanm_FinancialInstrumentsAbstract" abstract="true" name="FinancialInstrumentsAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="sanm_NotionalValueOfInterestRateSwapAxis" abstract="true" name="NotionalValueOfInterestRateSwapAxis" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType"/>
  <xs:element id="sanm_StockOptionsAndUnvestedRestrictedStockUnitsOutstanding" abstract="false" name="StockOptionsAndUnvestedRestrictedStockUnitsOutstanding" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="sanm_AdditionalCreditLine" abstract="false" name="AdditionalCreditLine" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="sanm_CPSMember" abstract="true" name="CPSMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="sanm_NumberOfOtherOperatingSegmentExcludingDAS" abstract="false" name="NumberOfOtherOperatingSegmentExcludingDAS" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="sanm_APICSaleOfNoncontrollingInterest" abstract="false" name="APICSaleOfNoncontrollingInterest" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="sanm_EndMarketAxis" abstract="true" name="EndMarketAxis" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType"/>
  <xs:element id="sanm_RepaymentPercentageforLongtermDebt" abstract="false" name="RepaymentPercentageforLongtermDebt" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="sanm_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour" abstract="false" name="LesseeOperatingLeaseLiabilityToBePaidAfterYearFour" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="sanm_PercentageOfNetSalesRepresentedByTenLargestCustomers" abstract="false" name="PercentageOfNetSalesRepresentedByTenLargestCustomers" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="sanm_AccountsReceivableSoldDuringThePeriod" abstract="false" name="AccountsReceivableSoldDuringThePeriod" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="sanm_RPAMember" abstract="true" name="RPAMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="sanm_Sharebasedcompensationarrangementsbysharebasedpaymentawardequityinstrumentsotherthanoptionsnonvestedintrinsicvalue" abstract="false" name="Sharebasedcompensationarrangementsbysharebasedpaymentawardequityinstrumentsotherthanoptionsnonvestedintrinsicvalue" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="sanm_SanminaMember" abstract="true" name="SanminaMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="sanm_CollectibilityofReceivableandExcessandObsoleteInventoryMember" abstract="true" name="CollectibilityofReceivableandExcessandObsoleteInventoryMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="sanm_TermLoanDue2027Member" abstract="true" name="TermLoanDue2027Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="sanm_IMSMember" abstract="true" name="IMSMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="sanm_RSBVLMember" abstract="true" name="RSBVLMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="sanm_SusanJohnsonMember" abstract="true" name="SusanJohnsonMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="sanm_TermLoan" abstract="false" name="TermLoan" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="sanm_ShareBasedCompensationArrangementByShareBasedPaymentAwardRestrictedStockNonVestedAggregateIntrinsicValueAbstract" abstract="true" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardRestrictedStockNonVestedAggregateIntrinsicValueAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
</xs:schema>
