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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2025 Workiva-->
<!--r:1b10865b-84ce-4ee9-b73f-c5c58dfbbd27,g:3b83f1f8-0aec-44ca-be31-4ee2384de697-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:fn="http://www.fabrinet.com/20250627" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:dtr-types="http://www.xbrl.org/dtr/type/2024-01-31" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.fabrinet.com/20250627">
  <xs:import namespace="http://fasb.org/srt/2025" schemaLocation="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd"/>
  <xs:import namespace="http://fasb.org/us-gaap/2025" schemaLocation="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.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/2024-01-31" schemaLocation="https://www.xbrl.org/dtr/type/2024-01-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/2025" schemaLocation="https://xbrl.sec.gov/country/2025/country-2025.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/currency/2025" schemaLocation="https://xbrl.sec.gov/currency/2025/currency-2025.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/cyd-af-sub/2025" schemaLocation="https://xbrl.sec.gov/cyd/2025/cyd-af-sub-2025.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/dei/2025" schemaLocation="https://xbrl.sec.gov/dei/2025/dei-2025.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/ecd/2025" schemaLocation="https://xbrl.sec.gov/ecd/2025/ecd-2025.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="fn-20250627_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="fn-20250627_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="fn-20250627_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="fn-20250627_cal.xml" xlink:role="http://www.xbrl.org/2003/role/calculationLinkbaseRef" xlink:type="simple"/>
      <link:roleType id="CoverPage" roleURI="http://www.fabrinet.com/role/CoverPage">
        <link:definition>0000001 - Document - Cover Page</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="AuditInformation" roleURI="http://www.fabrinet.com/role/AuditInformation">
        <link:definition>0000002 - Document - Audit 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="CONSOLIDATEDBALANCESHEETS" roleURI="http://www.fabrinet.com/role/CONSOLIDATEDBALANCESHEETS">
        <link:definition>9952151 - Statement - 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="CONSOLIDATEDBALANCESHEETSParenthetical" roleURI="http://www.fabrinet.com/role/CONSOLIDATEDBALANCESHEETSParenthetical">
        <link:definition>9952152 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</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="CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVEINCOME" roleURI="http://www.fabrinet.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVEINCOME">
        <link:definition>9952153 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS AND COMPREHENSIVE 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="CONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY" roleURI="http://www.fabrinet.com/role/CONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY">
        <link:definition>9952154 - Statement - CONSOLIDATED STATEMENTS OF SHAREHOLDERS' 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="CONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITYParenthetical" roleURI="http://www.fabrinet.com/role/CONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITYParenthetical">
        <link:definition>9952155 - Statement - CONSOLIDATED STATEMENTS OF SHAREHOLDERS' EQUITY (Parenthetical)</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="CONSOLIDATEDSTATEMENTSOFCASHFLOWS" roleURI="http://www.fabrinet.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS">
        <link:definition>9952156 - Statement - 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="Businessandorganization" roleURI="http://www.fabrinet.com/role/Businessandorganization">
        <link:definition>9952157 - Disclosure - Business and organization</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="Summaryofsignificantaccountingpolicies" roleURI="http://www.fabrinet.com/role/Summaryofsignificantaccountingpolicies">
        <link:definition>9952158 - Disclosure - Summary of significant accounting 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="Revenuesfromcontractswithcustomers" roleURI="http://www.fabrinet.com/role/Revenuesfromcontractswithcustomers">
        <link:definition>9952159 - Disclosure - Revenues from contracts with customers</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="Incometaxes" roleURI="http://www.fabrinet.com/role/Incometaxes">
        <link:definition>9952160 - Disclosure - Income taxes</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="Earningsperordinaryshare" roleURI="http://www.fabrinet.com/role/Earningsperordinaryshare">
        <link:definition>9952161 - Disclosure - Earnings per ordinary 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="Cashcashequivalentsandshortterminvestments" roleURI="http://www.fabrinet.com/role/Cashcashequivalentsandshortterminvestments">
        <link:definition>9952162 - Disclosure - Cash, cash equivalents and short-term investments</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="Fairvalueoffinancialinstruments" roleURI="http://www.fabrinet.com/role/Fairvalueoffinancialinstruments">
        <link:definition>9952163 - Disclosure - Fair value of 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="Tradeaccountsreceivablenet" roleURI="http://www.fabrinet.com/role/Tradeaccountsreceivablenet">
        <link:definition>9952164 - Disclosure - Trade accounts receivable, net</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="Inventories" roleURI="http://www.fabrinet.com/role/Inventories">
        <link:definition>9952165 - Disclosure - Inventories</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.fabrinet.com/role/Leases">
        <link:definition>9952166 - 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="Propertyplantandequipmentnet" roleURI="http://www.fabrinet.com/role/Propertyplantandequipmentnet">
        <link:definition>9952167 - Disclosure - Property, plant and equipment, net</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="Intangibles" roleURI="http://www.fabrinet.com/role/Intangibles">
        <link:definition>9952168 - Disclosure - Intangibles</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="Severanceliabilities" roleURI="http://www.fabrinet.com/role/Severanceliabilities">
        <link:definition>9952169 - Disclosure - Severance liabilities</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="Sharebasedcompensation" roleURI="http://www.fabrinet.com/role/Sharebasedcompensation">
        <link:definition>9952170 - Disclosure - Share-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="Employeebenefitplans" roleURI="http://www.fabrinet.com/role/Employeebenefitplans">
        <link:definition>9952171 - Disclosure - Employee benefit plans</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="Shareholdersequity" roleURI="http://www.fabrinet.com/role/Shareholdersequity">
        <link:definition>9952172 - Disclosure - Shareholders' 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="AccumulatedothercomprehensiveincomelossAOCI" roleURI="http://www.fabrinet.com/role/AccumulatedothercomprehensiveincomelossAOCI">
        <link:definition>9952173 - Disclosure - Accumulated other comprehensive income (loss) ("AOCI")</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.fabrinet.com/role/Commitmentsandcontingencies">
        <link:definition>9952174 - 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="Restructuringandotherrelatedcost" roleURI="http://www.fabrinet.com/role/Restructuringandotherrelatedcost">
        <link:definition>9952175 - Disclosure - Restructuring and other related cost</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="Businesssegmentsandgeographicinformation" roleURI="http://www.fabrinet.com/role/Businesssegmentsandgeographicinformation">
        <link:definition>9952176 - Disclosure - Business segments and geographic 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="Financialinstruments" roleURI="http://www.fabrinet.com/role/Financialinstruments">
        <link:definition>9952177 - 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="SummaryofsignificantaccountingpoliciesPolicies" roleURI="http://www.fabrinet.com/role/SummaryofsignificantaccountingpoliciesPolicies">
        <link:definition>9955511 - Disclosure - Summary of significant 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="SummaryofsignificantaccountingpoliciesTables" roleURI="http://www.fabrinet.com/role/SummaryofsignificantaccountingpoliciesTables">
        <link:definition>9955512 - Disclosure - Summary of significant accounting policies (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="RevenuesfromcontractswithcustomersTables" roleURI="http://www.fabrinet.com/role/RevenuesfromcontractswithcustomersTables">
        <link:definition>9955513 - Disclosure - Revenues from contracts with customers (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="IncometaxesTables" roleURI="http://www.fabrinet.com/role/IncometaxesTables">
        <link:definition>9955514 - Disclosure - Income taxes (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="EarningsperordinaryshareTables" roleURI="http://www.fabrinet.com/role/EarningsperordinaryshareTables">
        <link:definition>9955515 - Disclosure - Earnings per ordinary 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="CashcashequivalentsandshortterminvestmentsTables" roleURI="http://www.fabrinet.com/role/CashcashequivalentsandshortterminvestmentsTables">
        <link:definition>9955516 - Disclosure - Cash, cash equivalents and short-term investments (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="FairvalueoffinancialinstrumentsTables" roleURI="http://www.fabrinet.com/role/FairvalueoffinancialinstrumentsTables">
        <link:definition>9955517 - Disclosure - Fair value of 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="TradeaccountsreceivablenetTables" roleURI="http://www.fabrinet.com/role/TradeaccountsreceivablenetTables">
        <link:definition>9955518 - Disclosure - Trade accounts receivable, net (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="InventoriesTables" roleURI="http://www.fabrinet.com/role/InventoriesTables">
        <link:definition>9955519 - Disclosure - Inventories (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.fabrinet.com/role/LeasesTables">
        <link:definition>9955520 - 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="PropertyplantandequipmentnetTables" roleURI="http://www.fabrinet.com/role/PropertyplantandequipmentnetTables">
        <link:definition>9955521 - Disclosure - Property, plant and equipment, net (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="IntangiblesTables" roleURI="http://www.fabrinet.com/role/IntangiblesTables">
        <link:definition>9955522 - Disclosure - Intangibles (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="SeveranceliabilitiesTables" roleURI="http://www.fabrinet.com/role/SeveranceliabilitiesTables">
        <link:definition>9955523 - Disclosure - Severance liabilities (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="SharebasedcompensationTables" roleURI="http://www.fabrinet.com/role/SharebasedcompensationTables">
        <link:definition>9955524 - Disclosure - Share-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="AccumulatedothercomprehensiveincomelossAOCITables" roleURI="http://www.fabrinet.com/role/AccumulatedothercomprehensiveincomelossAOCITables">
        <link:definition>9955525 - Disclosure - Accumulated other comprehensive income (loss) ("AOCI") (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="BusinesssegmentsandgeographicinformationTables" roleURI="http://www.fabrinet.com/role/BusinesssegmentsandgeographicinformationTables">
        <link:definition>9955526 - Disclosure - Business segments and geographic 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="SummaryofsignificantaccountingpoliciesScheduleofPropertyPlantandEquipmentEstimatedUsefulLifeDetails" roleURI="http://www.fabrinet.com/role/SummaryofsignificantaccountingpoliciesScheduleofPropertyPlantandEquipmentEstimatedUsefulLifeDetails">
        <link:definition>9955527 - Disclosure - Summary of significant accounting policies - Schedule of Property, Plant and Equipment, Estimated Useful Life (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="SummaryofsignificantaccountingpoliciesAdditionalInformationDetails" roleURI="http://www.fabrinet.com/role/SummaryofsignificantaccountingpoliciesAdditionalInformationDetails">
        <link:definition>9955528 - Disclosure - Summary of significant accounting policies - 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="RevenuesfromcontractswithcustomersAdditionalInformationDetails" roleURI="http://www.fabrinet.com/role/RevenuesfromcontractswithcustomersAdditionalInformationDetails">
        <link:definition>9955529 - Disclosure - Revenues from contracts with customers - 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="RevenuesfromcontractswithcustomersScheduleofActivityintheCompanysContractLiabilitiesDetails" roleURI="http://www.fabrinet.com/role/RevenuesfromcontractswithcustomersScheduleofActivityintheCompanysContractLiabilitiesDetails">
        <link:definition>9955530 - Disclosure - Revenues from contracts with customers - Schedule of Activity in the Company's Contract Liabilities (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="RevenuesfromcontractswithcustomersScheduleofDisaggregationofRevenuebyGeographicalRegionsDetails" roleURI="http://www.fabrinet.com/role/RevenuesfromcontractswithcustomersScheduleofDisaggregationofRevenuebyGeographicalRegionsDetails">
        <link:definition>9955531 - Disclosure - Revenues from contracts with customers - Schedule of Disaggregation of Revenue by Geographical Regions (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="RevenuesfromcontractswithcustomersScheduleofRevenuesbyEndMarketDetails" roleURI="http://www.fabrinet.com/role/RevenuesfromcontractswithcustomersScheduleofRevenuesbyEndMarketDetails">
        <link:definition>9955532 - Disclosure - Revenues from contracts with customers - Schedule of Revenues by End Market (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="IncometaxesAdditionalInformationDetails" roleURI="http://www.fabrinet.com/role/IncometaxesAdditionalInformationDetails">
        <link:definition>9955533 - Disclosure - Income taxes - 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="IncometaxesScheduleofIncomeTaxExpenseDetails" roleURI="http://www.fabrinet.com/role/IncometaxesScheduleofIncomeTaxExpenseDetails">
        <link:definition>9955534 - Disclosure - Income taxes - Schedule of Income Tax Expense (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="IncometaxesScheduleofReconciliationbetweenTaxesthatWouldArisebyApplyingStatutoryTaxRateofCountryofPrincipalOperationstoEffectiveTaxChargeDetails" roleURI="http://www.fabrinet.com/role/IncometaxesScheduleofReconciliationbetweenTaxesthatWouldArisebyApplyingStatutoryTaxRateofCountryofPrincipalOperationstoEffectiveTaxChargeDetails">
        <link:definition>9955535 - Disclosure - Income taxes - Schedule of Reconciliation between Taxes that Would Arise by Applying Statutory Tax Rate of Country of Principal Operations to Effective Tax Charge (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="IncometaxesScheduleofDeferredTaxAssetsandDeferredTaxLiabilitiesNetofValuationAllowanceDetails" roleURI="http://www.fabrinet.com/role/IncometaxesScheduleofDeferredTaxAssetsandDeferredTaxLiabilitiesNetofValuationAllowanceDetails">
        <link:definition>9955536 - Disclosure - Income taxes - Schedule of Deferred Tax Assets and Deferred Tax Liabilities, Net of Valuation Allowance (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="IncometaxesScheduleofChangesinValuationAllowancesofDeferredTaxAssetsDetails" roleURI="http://www.fabrinet.com/role/IncometaxesScheduleofChangesinValuationAllowancesofDeferredTaxAssetsDetails">
        <link:definition>9955537 - Disclosure - Income taxes - Schedule of Changes in Valuation Allowances of Deferred Tax Assets (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="IncometaxesScheduleofChangestoUnrecognizedTaxBenefitsDetails" roleURI="http://www.fabrinet.com/role/IncometaxesScheduleofChangestoUnrecognizedTaxBenefitsDetails">
        <link:definition>9955538 - Disclosure - Income taxes - Schedule of Changes to Unrecognized Tax Benefits (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="EarningsperordinaryshareDetails" roleURI="http://www.fabrinet.com/role/EarningsperordinaryshareDetails">
        <link:definition>9955539 - Disclosure - Earnings per ordinary 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="CashcashequivalentsandshortterminvestmentsScheduleofCashCashEquivalentsandShortTermInvestmentsDetails" roleURI="http://www.fabrinet.com/role/CashcashequivalentsandshortterminvestmentsScheduleofCashCashEquivalentsandShortTermInvestmentsDetails">
        <link:definition>9955540 - Disclosure - Cash, cash equivalents and short-term investments - Schedule of Cash, Cash Equivalents, and Short-Term Investments (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="CashcashequivalentsandshortterminvestmentsAdditionalInformationDetails" roleURI="http://www.fabrinet.com/role/CashcashequivalentsandshortterminvestmentsAdditionalInformationDetails">
        <link:definition>9955541 - Disclosure - Cash, cash equivalents and short-term investments - 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="CashcashequivalentsandshortterminvestmentsSummaryofCostandEstimatedFairValueofShorttermInvestmentsClassifiedasAvailableforSaleSecuritiesDetails" roleURI="http://www.fabrinet.com/role/CashcashequivalentsandshortterminvestmentsSummaryofCostandEstimatedFairValueofShorttermInvestmentsClassifiedasAvailableforSaleSecuritiesDetails">
        <link:definition>9955542 - Disclosure - Cash, cash equivalents and short-term investments - Summary of Cost and Estimated Fair Value of Short-term Investments Classified as Available-for-Sale Securities (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="FairvalueoffinancialinstrumentsScheduleofFinancialInstrumentsMeasuredatFairValueonRecurringBasisDetails" roleURI="http://www.fabrinet.com/role/FairvalueoffinancialinstrumentsScheduleofFinancialInstrumentsMeasuredatFairValueonRecurringBasisDetails">
        <link:definition>9955543 - Disclosure - Fair value of financial instruments - Schedule of Financial Instruments Measured at Fair Value on Recurring Basis (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="FairvalueoffinancialinstrumentsAdditionalInformationDetails" roleURI="http://www.fabrinet.com/role/FairvalueoffinancialinstrumentsAdditionalInformationDetails">
        <link:definition>9955544 - Disclosure - Fair value of financial instruments - 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="FairvalueoffinancialinstrumentsScheduleImpactsofDerivativeGainLossofCashFlowHedgesDetails" roleURI="http://www.fabrinet.com/role/FairvalueoffinancialinstrumentsScheduleImpactsofDerivativeGainLossofCashFlowHedgesDetails">
        <link:definition>9955545 - Disclosure - Fair value of financial instruments - Schedule Impacts of Derivative Gain (Loss) of Cash Flow Hedges (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="FairvalueoffinancialinstrumentsScheduleofDerivativeFinancialInstrumentsDetails" roleURI="http://www.fabrinet.com/role/FairvalueoffinancialinstrumentsScheduleofDerivativeFinancialInstrumentsDetails">
        <link:definition>9955546 - Disclosure - Fair value of financial instruments - Schedule of Derivative Financial Instruments (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="TradeaccountsreceivablenetDetails" roleURI="http://www.fabrinet.com/role/TradeaccountsreceivablenetDetails">
        <link:definition>9955547 - Disclosure - Trade accounts receivable, net (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="TradeaccountsreceivablenetCreditLossesRollForwardDetails" roleURI="http://www.fabrinet.com/role/TradeaccountsreceivablenetCreditLossesRollForwardDetails">
        <link:definition>9955548 - Disclosure - Trade accounts receivable, net - Credit Losses Roll Forward (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="InventoriesDetails" roleURI="http://www.fabrinet.com/role/InventoriesDetails">
        <link:definition>9955549 - Disclosure - Inventories (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="LeasesScheduleofOperatingLeaseLiabilitiesDetails" roleURI="http://www.fabrinet.com/role/LeasesScheduleofOperatingLeaseLiabilitiesDetails">
        <link:definition>9955550 - Disclosure - Leases - Schedule of Operating Lease Liabilities (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="LeasesScheduleofOperatingLeaseLiabilitiesDetails_1" roleURI="http://www.fabrinet.com/role/LeasesScheduleofOperatingLeaseLiabilitiesDetails_1">
        <link:definition>9955550 - Disclosure - Leases - Schedule of Operating Lease Liabilities (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="LeasesAdditionalInformationDetails" roleURI="http://www.fabrinet.com/role/LeasesAdditionalInformationDetails">
        <link:definition>9955551 - Disclosure - Leases - 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="LeasesSummaryofAdditionalInformationRelatedtoOperatingandFinanceLeasesDetails" roleURI="http://www.fabrinet.com/role/LeasesSummaryofAdditionalInformationRelatedtoOperatingandFinanceLeasesDetails">
        <link:definition>9955552 - Disclosure - Leases - Summary of Additional Information Related to Operating and Finance Leases (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="LeasesScheduleofSupplementalCashFlowInformationRelatedtoOperatingLeasesDetails" roleURI="http://www.fabrinet.com/role/LeasesScheduleofSupplementalCashFlowInformationRelatedtoOperatingLeasesDetails">
        <link:definition>9955553 - Disclosure - Leases - Schedule of Supplemental Cash Flow Information Related to Operating Leases (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="PropertyplantandequipmentnetScheduleofPropertyPlantandEquipmentDetails" roleURI="http://www.fabrinet.com/role/PropertyplantandequipmentnetScheduleofPropertyPlantandEquipmentDetails">
        <link:definition>9955554 - Disclosure - Property, plant and equipment, net - Schedule of Property, Plant and Equipment (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="PropertyplantandequipmentnetAdditionalInformationDetails" roleURI="http://www.fabrinet.com/role/PropertyplantandequipmentnetAdditionalInformationDetails">
        <link:definition>9955555 - Disclosure - Property, plant and equipment, net - 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="IntangiblesScheduleofIntangibleAssetsDetails" roleURI="http://www.fabrinet.com/role/IntangiblesScheduleofIntangibleAssetsDetails">
        <link:definition>9955556 - Disclosure - Intangibles - Schedule of Intangible Assets (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="IntangiblesAdditionalInformationDetails" roleURI="http://www.fabrinet.com/role/IntangiblesAdditionalInformationDetails">
        <link:definition>9955557 - Disclosure - Intangibles - 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="IntangiblesScheduleofWeightedAverageRemainingLifeofIntangibleAssetsDetails" roleURI="http://www.fabrinet.com/role/IntangiblesScheduleofWeightedAverageRemainingLifeofIntangibleAssetsDetails">
        <link:definition>9955558 - Disclosure - Intangibles - Schedule of Weighted-Average Remaining Life of Intangible Assets (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="IntangiblesScheduleofEstimatedFutureAmortizationofIntangiblesAssetsDetails" roleURI="http://www.fabrinet.com/role/IntangiblesScheduleofEstimatedFutureAmortizationofIntangiblesAssetsDetails">
        <link:definition>9955559 - Disclosure - Intangibles - Schedule of Estimated Future Amortization of Intangibles Assets (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="SeveranceliabilitiesScheduleofSeveranceLiabilitiesDetails" roleURI="http://www.fabrinet.com/role/SeveranceliabilitiesScheduleofSeveranceLiabilitiesDetails">
        <link:definition>9955560 - Disclosure - Severance liabilities - Schedule of Severance Liabilities (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="SeveranceliabilitiesScheduleofFutureMaturitiesofSeveranceLiabilitiesDetails" roleURI="http://www.fabrinet.com/role/SeveranceliabilitiesScheduleofFutureMaturitiesofSeveranceLiabilitiesDetails">
        <link:definition>9955561 - Disclosure - Severance liabilities - Schedule of Future Maturities of Severance Liabilities (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="SeveranceliabilitiesScheduleofSeveranceLiabilitiesRecognizedinBalanceSheetDetails" roleURI="http://www.fabrinet.com/role/SeveranceliabilitiesScheduleofSeveranceLiabilitiesRecognizedinBalanceSheetDetails">
        <link:definition>9955562 - Disclosure - Severance liabilities - Schedule of Severance Liabilities Recognized in Balance Sheet (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="SeveranceliabilitiesScheduleofBenefitObligationsinExcessofFairValueofPlanAssetsDetails" roleURI="http://www.fabrinet.com/role/SeveranceliabilitiesScheduleofBenefitObligationsinExcessofFairValueofPlanAssetsDetails">
        <link:definition>9955563 - Disclosure - Severance liabilities - Schedule of Benefit Obligations in Excess of Fair Value of Plan Assets (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="SeveranceliabilitiesScheduleofPrincipalWeightedAverageActuarialAssumptionsUsedtoDetermineSeveranceLiabilitiesDetails" roleURI="http://www.fabrinet.com/role/SeveranceliabilitiesScheduleofPrincipalWeightedAverageActuarialAssumptionsUsedtoDetermineSeveranceLiabilitiesDetails">
        <link:definition>9955564 - Disclosure - Severance liabilities - Schedule of Principal Weighted Average Actuarial Assumptions Used to Determine Severance Liabilities (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="SeveranceliabilitiesScheduleofPrincipalWeightedAverageActuarialAssumptionsUsedtoDetermineBenefitCostsDetails" roleURI="http://www.fabrinet.com/role/SeveranceliabilitiesScheduleofPrincipalWeightedAverageActuarialAssumptionsUsedtoDetermineBenefitCostsDetails">
        <link:definition>9955565 - Disclosure - Severance liabilities - Schedule of Principal Weighted Average Actuarial Assumptions Used to Determine Benefit Costs (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="SharebasedcompensationScheduleofEffectofRecordingShareBasedCompensationExpenseDetails" roleURI="http://www.fabrinet.com/role/SharebasedcompensationScheduleofEffectofRecordingShareBasedCompensationExpenseDetails">
        <link:definition>9955566 - Disclosure - Share-based compensation - Schedule of Effect of Recording Share-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>
      <link:roleType id="SharebasedcompensationScheduleofShareBasedCompensationExpenseRecordedinCondensedConsolidatedStatementsofOperationsandComprehensiveIncomeDetails" roleURI="http://www.fabrinet.com/role/SharebasedcompensationScheduleofShareBasedCompensationExpenseRecordedinCondensedConsolidatedStatementsofOperationsandComprehensiveIncomeDetails">
        <link:definition>9955567 - Disclosure - Share-based compensation - Schedule of Share-Based Compensation Expense Recorded in Condensed Consolidated Statements of Operations and Comprehensive Income (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="SharebasedcompensationAdditionalInformationDetails" roleURI="http://www.fabrinet.com/role/SharebasedcompensationAdditionalInformationDetails">
        <link:definition>9955568 - Disclosure - Share-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="SharebasedcompensationSharebasedawardactivityDetails" roleURI="http://www.fabrinet.com/role/SharebasedcompensationSharebasedawardactivityDetails">
        <link:definition>9955569 - Disclosure - Share-based compensation - Share-based award activity (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="SharebasedcompensationScheduleofRestrictedShareUnitActivityDetails" roleURI="http://www.fabrinet.com/role/SharebasedcompensationScheduleofRestrictedShareUnitActivityDetails">
        <link:definition>9955570 - Disclosure - Share-based compensation - Schedule of Restricted Share Unit Activity (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="SharebasedcompensationScheduleofPerformanceShareUnitActivityDetails" roleURI="http://www.fabrinet.com/role/SharebasedcompensationScheduleofPerformanceShareUnitActivityDetails">
        <link:definition>9955571 - Disclosure - Share-based compensation - Schedule of Performance Share Unit Activity (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="SharebasedcompensationSummaryofEstimatedAssumptionsinPerShareFairValueCalculationDetails" roleURI="http://www.fabrinet.com/role/SharebasedcompensationSummaryofEstimatedAssumptionsinPerShareFairValueCalculationDetails">
        <link:definition>9955572 - Disclosure - Share-based compensation - Summary of Estimated Assumptions in Per Share Fair Value Calculation (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="EmployeebenefitplansDetails" roleURI="http://www.fabrinet.com/role/EmployeebenefitplansDetails">
        <link:definition>9955573 - Disclosure - Employee benefit plans (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="ShareholdersequityDetails" roleURI="http://www.fabrinet.com/role/ShareholdersequityDetails">
        <link:definition>9955574 - Disclosure - Shareholders' 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="AccumulatedothercomprehensiveincomelossAOCIScheduleofChangesinAOCINetofTaxDetails" roleURI="http://www.fabrinet.com/role/AccumulatedothercomprehensiveincomelossAOCIScheduleofChangesinAOCINetofTaxDetails">
        <link:definition>9955575 - Disclosure - Accumulated other comprehensive income (loss) ("AOCI") - Schedule of Changes in AOCI, Net of 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="AccumulatedothercomprehensiveincomelossAOCIScheduleofPreTaxAmountsReclassifiedfromAOCIintoCondensedConsolidatedStatementsofOperationsandComprehensiveIncomeDetails" roleURI="http://www.fabrinet.com/role/AccumulatedothercomprehensiveincomelossAOCIScheduleofPreTaxAmountsReclassifiedfromAOCIintoCondensedConsolidatedStatementsofOperationsandComprehensiveIncomeDetails">
        <link:definition>9955576 - Disclosure - Accumulated other comprehensive income (loss) ("AOCI") - Schedule of Pre-Tax Amounts Reclassified from AOCI into Condensed Consolidated Statements of Operations and Comprehensive Income (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="CommitmentsandcontingenciesDetails" roleURI="http://www.fabrinet.com/role/CommitmentsandcontingenciesDetails">
        <link:definition>9955577 - Disclosure - Commitments and 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="RestructuringandotherrelatedcostDetails" roleURI="http://www.fabrinet.com/role/RestructuringandotherrelatedcostDetails">
        <link:definition>9955578 - Disclosure - Restructuring and other related 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="BusinesssegmentsandgeographicinformationAdditionalInformationDetails" roleURI="http://www.fabrinet.com/role/BusinesssegmentsandgeographicinformationAdditionalInformationDetails">
        <link:definition>9955579 - Disclosure - Business segments and geographic information - 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="BusinesssegmentsandgeographicinformationSegmentreportingofRevenueandSignificantExpensesDetails" roleURI="http://www.fabrinet.com/role/BusinesssegmentsandgeographicinformationSegmentreportingofRevenueandSignificantExpensesDetails">
        <link:definition>9955580 - Disclosure - Business segments and geographic information - Segment reporting of Revenue and Significant Expenses (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="BusinesssegmentsandgeographicinformationScheduleofLongLivedAssetsbyGeographicAreasDetails" roleURI="http://www.fabrinet.com/role/BusinesssegmentsandgeographicinformationScheduleofLongLivedAssetsbyGeographicAreasDetails">
        <link:definition>9955581 - Disclosure - Business segments and geographic information - Schedule of Long-Lived Assets by Geographic Areas (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="BusinesssegmentsandgeographicinformationScheduleofTotalRevenuesbyPercentagefromIndividualCustomersRepresentingTenPercentorMoreofTotalRevenuesDetails" roleURI="http://www.fabrinet.com/role/BusinesssegmentsandgeographicinformationScheduleofTotalRevenuesbyPercentagefromIndividualCustomersRepresentingTenPercentorMoreofTotalRevenuesDetails">
        <link:definition>9955582 - Disclosure - Business segments and geographic information - Schedule of Total Revenues by Percentage from Individual Customers Representing Ten Percent or More of Total Revenues (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="BusinesssegmentsandgeographicinformationScheduleofAccountsReceivablefromIndividualCustomersRepresentingTenPercentorMoreofAccountsReceivableDetails" roleURI="http://www.fabrinet.com/role/BusinesssegmentsandgeographicinformationScheduleofAccountsReceivablefromIndividualCustomersRepresentingTenPercentorMoreofAccountsReceivableDetails">
        <link:definition>9955583 - Disclosure - Business segments and geographic information - Schedule of Accounts Receivable from Individual Customers Representing Ten Percent or More of Accounts Receivable (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="FinancialinstrumentsDetails" roleURI="http://www.fabrinet.com/role/FinancialinstrumentsDetails">
        <link:definition>9955584 - Disclosure - Financial instruments (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="fn_AuditorInformationAbstract" abstract="true" name="AuditorInformationAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="fn_AccruedCapitalExpenditureCurrent" abstract="false" name="AccruedCapitalExpenditureCurrent" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_GainLossOnDisposalOfPropertyPlantAndEquipmentAndIntangibles" abstract="false" name="GainLossOnDisposalOfPropertyPlantAndEquipmentAndIntangibles" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_ReversalOfAllowanceForDoubtfulAccountsReceivable" abstract="false" name="ReversalOfAllowanceForDoubtfulAccountsReceivable" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_UnrealizedGainLossOnExchangeRateAndFairValueOfForeignCurrencyForwardContracts" abstract="false" name="UnrealizedGainLossOnExchangeRateAndFairValueOfForeignCurrencyForwardContracts" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_AmortizationOfInterestRateSwapsFairValueAtHedge" abstract="false" name="AmortizationOfInterestRateSwapsFairValueAtHedge" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_ProceedsFromCustomerWarrant" abstract="false" name="ProceedsFromCustomerWarrant" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_IncreaseDecreaseInAccruedExpenses" abstract="false" name="IncreaseDecreaseInAccruedExpenses" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_ProceedsFromMaturitiesOfShortTermInvestments" abstract="false" name="ProceedsFromMaturitiesOfShortTermInvestments" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_RepaymentOfLongTermBorrowings" abstract="false" name="RepaymentOfLongTermBorrowings" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_CashAndCashEquivalentsAndRestrictedCashPeriodIncreaseDecreaseAbstract" abstract="true" name="CashAndCashEquivalentsAndRestrictedCashPeriodIncreaseDecreaseAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="fn_CashPaidForAbstractAbstract" abstract="true" name="CashPaidForAbstractAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="fn_InterestReceived" abstract="false" name="InterestReceived" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_AccruedSeveranceBenefitsDisclosureTextBlock" abstract="false" name="AccruedSeveranceBenefitsDisclosureTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="fn_ShortTermInvestmentsPolicyTextBlock" abstract="false" name="ShortTermInvestmentsPolicyTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="fn_RevenueFromContractAssetsWithCustomerPolicyTextBlock" abstract="false" name="RevenueFromContractAssetsWithCustomerPolicyTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="fn_RevenueFromContractLiabilitiesWithCustomerPolicyTextBlock" abstract="false" name="RevenueFromContractLiabilitiesWithCustomerPolicyTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="fn_TreasuryStockPolicyTextBlock" abstract="false" name="TreasuryStockPolicyTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="fn_ServicesPolicyTextBlock" abstract="false" name="ServicesPolicyTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="fn_ContractCostsPolicyTextBlock" abstract="false" name="ContractCostsPolicyTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="fn_ShippingAndHandlingExpensePolicyTextBlock" abstract="false" name="ShippingAndHandlingExpensePolicyTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="fn_CustomerWarrantPolicyPolicyTextBlock" abstract="false" name="CustomerWarrantPolicyPolicyTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="fn_PropertyPlantAndEquipmentUsefulLifeTableTextBlock" abstract="false" name="PropertyPlantAndEquipmentUsefulLifeTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="fn_ScheduleOfChangeInValuationAllowanceForDeferredTaxAssetsTableTextBlock" abstract="false" name="ScheduleOfChangeInValuationAllowanceForDeferredTaxAssetsTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="fn_CashCashEquivalentsAndMarketableSecuritiesTableTextBlock" abstract="false" name="CashCashEquivalentsAndMarketableSecuritiesTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="fn_DerivativeFinancialInstrumentsInTheUnauditedCondensedConsolidatedBalanceSheetsTableTextBlock" abstract="false" name="DerivativeFinancialInstrumentsInTheUnauditedCondensedConsolidatedBalanceSheetsTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="fn_ScheduleOfAdditionalInformationRelatedToOperatingAndFinanceLeaseTableTextBlock" abstract="false" name="ScheduleOfAdditionalInformationRelatedToOperatingAndFinanceLeaseTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="fn_ScheduleOfSupplementalCashFlowInformationRelatedToOperatingLeaseTableTextBlock" abstract="false" name="ScheduleOfSupplementalCashFlowInformationRelatedToOperatingLeaseTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="fn_ScheduleOfFutureMaturitiesOfSeveranceLiabilitiesTableTextBlock" abstract="false" name="ScheduleOfFutureMaturitiesOfSeveranceLiabilitiesTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="fn_SharedBasedPaymentSummaryOfFairValuePerShareAssumptionsTableTextBlock" abstract="false" name="SharedBasedPaymentSummaryOfFairValuePerShareAssumptionsTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="fn_ScheduleOfAccountsReceivableByMajorCustomersByReportingSegmentsTableTextBlock" abstract="false" name="ScheduleOfAccountsReceivableByMajorCustomersByReportingSegmentsTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="fn_AccountingPoliciesTable" abstract="true" name="AccountingPoliciesTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="fn_AccountingPoliciesLineItems" abstract="true" name="AccountingPoliciesLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="fn_ProductWarrantyTerm" abstract="false" name="ProductWarrantyTerm" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="fn_ServiceRevenue" abstract="false" name="ServiceRevenue" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_AdjustmentToRevenueCustomerWarrant" abstract="false" name="AdjustmentToRevenueCustomerWarrant" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_NumberOfGeographicRegions" abstract="false" name="NumberOfGeographicRegions" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="fn_ContractWithCustomerLiabilityAdditionsForPeriod" abstract="false" name="ContractWithCustomerLiabilityAdditionsForPeriod" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_ContractWithCustomerLiabilityRevenueRecognizedIncludingOpeningBalance" abstract="false" name="ContractWithCustomerLiabilityRevenueRecognizedIncludingOpeningBalance" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_NorthAmericaOtherMember" abstract="true" name="NorthAmericaOtherMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_AsiaPacificOtherMember" abstract="true" name="AsiaPacificOtherMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_EuropeOtherMember" abstract="true" name="EuropeOtherMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_OpticalCommunicationsMember" abstract="true" name="OpticalCommunicationsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_NonOpticalCommunicationsMember" abstract="true" name="NonOpticalCommunicationsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_ContractWithCustomerMarketCategoryAxis" abstract="true" name="ContractWithCustomerMarketCategoryAxis" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType"/>
  <xs:element id="fn_ContractWithCustomerMarketCategoryDomain" abstract="true" name="ContractWithCustomerMarketCategoryDomain" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_DatacomMember" abstract="true" name="DatacomMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_TelecomMember" abstract="true" name="TelecomMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_AutomotiveMember" abstract="true" name="AutomotiveMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_IndustrialLaserMember" abstract="true" name="IndustrialLaserMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_OtherNonOpticalCommunicationsMember" abstract="true" name="OtherNonOpticalCommunicationsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_IncomeTaxesTable" abstract="true" name="IncomeTaxesTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="fn_IncomeTaxesLineItems" abstract="true" name="IncomeTaxesLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="fn_IncomeTaxHolidayExemptionPeriod" abstract="false" name="IncomeTaxHolidayExemptionPeriod" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="fn_IncomeTaxHolidayReducedIncomeTaxRate" abstract="false" name="IncomeTaxHolidayReducedIncomeTaxRate" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="fn_IncomeTaxReconciliationInUndistributedEarnings" abstract="false" name="IncomeTaxReconciliationInUndistributedEarnings" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_IncomeTaxReconciliationEffectOfForeignOperations" abstract="false" name="IncomeTaxReconciliationEffectOfForeignOperations" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_IncomeTaxReconciliationTaxCreditsResearchAndDevelopment" abstract="false" name="IncomeTaxReconciliationTaxCreditsResearchAndDevelopment" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_IncomeTaxReconciliationUncertainTaxPositions" abstract="false" name="IncomeTaxReconciliationUncertainTaxPositions" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_IncomeTaxReconciliationUtilizationOfOperatingLossCarryForwards" abstract="false" name="IncomeTaxReconciliationUtilizationOfOperatingLossCarryForwards" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_IncomeTaxReconciliationReversalOfValuationAllowance" abstract="false" name="IncomeTaxReconciliationReversalOfValuationAllowance" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_IncomeTaxHolidayIncomeTaxBenefitsExpensePerShare" abstract="false" name="IncomeTaxHolidayIncomeTaxBenefitsExpensePerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="fn_DeferredTaxAssetsOtherAdjustments" abstract="false" name="DeferredTaxAssetsOtherAdjustments" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_DeferredTaxLiabilitiesIntangibleAssetsAndAcquisitionAdjustments" abstract="false" name="DeferredTaxLiabilitiesIntangibleAssetsAndAcquisitionAdjustments" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_ReconciliationOfDeferredTaxAssetsValuationAllowanceRollForward" abstract="true" name="ReconciliationOfDeferredTaxAssetsValuationAllowanceRollForward" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="fn_ValuationAllowanceDeferredTaxAssetIncreaseAmount" abstract="false" name="ValuationAllowanceDeferredTaxAssetIncreaseAmount" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_DeferredTaxAssetsValuationAllowanceReversal" abstract="false" name="DeferredTaxAssetsValuationAllowanceReversal" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_ChangesToUncertainIncomeTaxPositionsRollForward" abstract="true" name="ChangesToUncertainIncomeTaxPositionsRollForward" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="fn_CashCashEquivalentsAndMarketableSecuritiesTable" abstract="true" name="CashCashEquivalentsAndMarketableSecuritiesTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="fn_USTreasurySecuritiesAndUSGovernmentAndAgencySecuritiesMember" abstract="true" name="USTreasurySecuritiesAndUSGovernmentAndAgencySecuritiesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_CashCashEquivalentsAndMarketableSecuritiesLineItems" abstract="true" name="CashCashEquivalentsAndMarketableSecuritiesLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="fn_CashAndCashEquivalentsAtCost" abstract="false" name="CashAndCashEquivalentsAtCost" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_CashAndCashEquivalentsAndMarketableSecuritiesCarryingCost" abstract="false" name="CashAndCashEquivalentsAndMarketableSecuritiesCarryingCost" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_MarketableSecuritiesMaturityPeriod" abstract="false" name="MarketableSecuritiesMaturityPeriod" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="fn_EffectiveInterestRateOnShortTermBankDeposits" abstract="false" name="EffectiveInterestRateOnShortTermBankDeposits" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="fn_PercentageOfCashAndCashEquivalentsHeldByParentCompany" abstract="false" name="PercentageOfCashAndCashEquivalentsHeldByParentCompany" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="fn_InvestmentsClassifiedByContractualMaturityDateTable" abstract="true" name="InvestmentsClassifiedByContractualMaturityDateTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="fn_InvestmentsClassifiedByContractualMaturityDateLineItems" abstract="true" name="InvestmentsClassifiedByContractualMaturityDateLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="fn_DerivativesGainLossRecognizedIntoOtherComprehensiveIncomeAbstract" abstract="true" name="DerivativesGainLossRecognizedIntoOtherComprehensiveIncomeAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="fn_DerivativesGainLossReclassifiedFromOtherComprehensiveIncomeIntoEarningsAbstract" abstract="true" name="DerivativesGainLossReclassifiedFromOtherComprehensiveIncomeIntoEarningsAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="fn_ForeignCurrencyForwardAndOptionContractsMember" abstract="true" name="ForeignCurrencyForwardAndOptionContractsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_AccountsReceivableCreditLossExpense" abstract="false" name="AccountsReceivableCreditLossExpense" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_AccountsReceivableCreditLossReversal" abstract="false" name="AccountsReceivableCreditLossReversal" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_OperatingLeaseRentalExpenseLongTerm" abstract="false" name="OperatingLeaseRentalExpenseLongTerm" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_OperatingLeaseRentalExpenseShortTerm" abstract="false" name="OperatingLeaseRentalExpenseShortTerm" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_CashFlowInformationIncludedInTheMeasurementOfLeaseLiabilitiesAbstract" abstract="true" name="CashFlowInformationIncludedInTheMeasurementOfLeaseLiabilitiesAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="fn_AccumulatedImpairmentReserveOfPropertyPlantAndEquipment" abstract="false" name="AccumulatedImpairmentReserveOfPropertyPlantAndEquipment" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_FiniteLivedIntangibleLiabilitiesLineItems" abstract="true" name="FiniteLivedIntangibleLiabilitiesLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="fn_ChangesInSeveranceLiabilitiesRollForward" abstract="true" name="ChangesInSeveranceLiabilitiesRollForward" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="fn_DefinedBenefitPlanBenefitObligationUnrealizedGainLossOnExchangeRate" abstract="false" name="DefinedBenefitPlanBenefitObligationUnrealizedGainLossOnExchangeRate" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_DefinedBenefitPlanBenefitObligationIncreaseDecreaseDueToWriteOff" abstract="false" name="DefinedBenefitPlanBenefitObligationIncreaseDecreaseDueToWriteOff" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_ChangesInPlanAssetsRollForward" abstract="true" name="ChangesInPlanAssetsRollForward" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="fn_DefinedBenefitPlanPlanAssetsIncreaseDecreaseDueToWritteOff" abstract="false" name="DefinedBenefitPlanPlanAssetsIncreaseDecreaseDueToWritteOff" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_LiabilityDefinedBenefitPensionPlanDueYearOne" abstract="false" name="LiabilityDefinedBenefitPensionPlanDueYearOne" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_LiabilityDefinedBenefitPensionPlanDueYearTwo" abstract="false" name="LiabilityDefinedBenefitPensionPlanDueYearTwo" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_LiabilityDefinedBenefitPensionPlanDueYearThree" abstract="false" name="LiabilityDefinedBenefitPensionPlanDueYearThree" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_LiabilityDefinedBenefitPensionPlanDueYearFour" abstract="false" name="LiabilityDefinedBenefitPensionPlanDueYearFour" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_LiabilityDefinedBenefitPensionPlanDueYearFive" abstract="false" name="LiabilityDefinedBenefitPensionPlanDueYearFive" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_LiabilityDefinedBenefitPensionPlanDueAfterYearFive" abstract="false" name="LiabilityDefinedBenefitPensionPlanDueAfterYearFive" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_PerformanceStockUnitsExpense" abstract="false" name="PerformanceStockUnitsExpense" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_EquityIncentivePlansMember" abstract="true" name="EquityIncentivePlansMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_EquityIncentivePlans2020Member" abstract="true" name="EquityIncentivePlans2020Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_InducementEquityIncentivePlan2017Member" abstract="true" name="InducementEquityIncentivePlan2017Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_RestrictedStockUnitsRSUAndPerformanceShareMember" abstract="true" name="RestrictedStockUnitsRSUAndPerformanceShareMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_VestingOptionOneMember" abstract="true" name="VestingOptionOneMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_VestingOptionTwoMember" abstract="true" name="VestingOptionTwoMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_PeriodTenMember" abstract="true" name="PeriodTenMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_PeriodSixMember" abstract="true" name="PeriodSixMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_NonEmployeeDirectorMember" abstract="true" name="NonEmployeeDirectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_ExecutiveDirectorMember" abstract="true" name="ExecutiveDirectorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedInPeriodGrantDateFairValue" abstract="false" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedInPeriodGrantDateFairValue" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_ClassOfWarrantOrRightWarrantsVested" abstract="false" name="ClassOfWarrantOrRightWarrantsVested" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="fn_ClassOfWarrantOrRightGrantDateFairValuePerShare" abstract="false" name="ClassOfWarrantOrRightGrantDateFairValuePerShare" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="fn_ClassOfWarrantOrRightGrantDateFairValue" abstract="false" name="ClassOfWarrantOrRightGrantDateFairValue" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExpectedToVestNumber" abstract="false" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExpectedToVestNumber" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="fn_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExpectedToVestWeightedAverageGrantDateFairValue" abstract="false" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsExpectedToVestWeightedAverageGrantDateFairValue" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="fn_ProvidentFundMember" abstract="true" name="ProvidentFundMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_DefinedContributionPlan401KMember" abstract="true" name="DefinedContributionPlan401KMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_DefinedContributionAndDefinedBenefitPlansLineItems" abstract="true" name="DefinedContributionAndDefinedBenefitPlansLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="fn_ShareholdersEquityTable" abstract="true" name="ShareholdersEquityTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="fn_ShareholdersEquityLineItems" abstract="true" name="ShareholdersEquityLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="fn_StockRepurchaseProgramAdditionalAuthorizedRepurchaseAmount" abstract="false" name="StockRepurchaseProgramAdditionalAuthorizedRepurchaseAmount" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="fn_A2023CreditFacilityAgreementMember" abstract="true" name="A2023CreditFacilityAgreementMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_DebtInstrumentCovenantServiceCoverageRatioMinimumAtPaymentOfADividend" abstract="false" name="DebtInstrumentCovenantServiceCoverageRatioMinimumAtPaymentOfADividend" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:pureItemType"/>
  <xs:element id="fn_DebtInstrumentCovenantDebtToEquityRatioMaximum" abstract="false" name="DebtInstrumentCovenantDebtToEquityRatioMaximum" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:pureItemType"/>
  <xs:element id="fn_OthersGeographicAreaMember" abstract="true" name="OthersGeographicAreaMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_NvidiaCorporationMember" abstract="true" name="NvidiaCorporationMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_CiscoSystemsIncMember" abstract="true" name="CiscoSystemsIncMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_LumentumOperationsLLCMember" abstract="true" name="LumentumOperationsLLCMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_InfineraCorporationMember" abstract="true" name="InfineraCorporationMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_ScheduleOfEntityWideAccountsReceivableByMajorCustomersByReportingSegmentsTable" abstract="true" name="ScheduleOfEntityWideAccountsReceivableByMajorCustomersByReportingSegmentsTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="fn_NokiaCorporationMember" abstract="true" name="NokiaCorporationMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="fn_ScheduleOfEntityWideAccountsReceivableByMajorCustomersByReportingSegmentsLineItems" abstract="true" name="ScheduleOfEntityWideAccountsReceivableByMajorCustomersByReportingSegmentsLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
</xs:schema>
