<?xml version="1.0"?>
<ownershipDocument>
    <schemaVersion>X0201</schemaVersion>

    <documentType>4</documentType><periodOfReport>2004-01-20</periodOfReport><notSubjectToSection16>1</notSubjectToSection16>
    <issuer>
        <issuerCik>0001058057</issuerCik>
        <issuerName>MARVELL TECHNOLOGY GROUP LTD</issuerName>
        <issuerTradingSymbol>MRVL</issuerTradingSymbol></issuer><reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001134607</rptOwnerCik>
            <rptOwnerName>BANATAO DIOSDADO P</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>700 FIRST AVENUE</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>SUNNYVALE</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>94089</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
            <reportingOwnerRelationship>
<isDirector>1</isDirector><isOfficer>0</isOfficer><isTenPercentOwner>0</isTenPercentOwner><isOther>0</isOther></reportingOwnerRelationship></reportingOwner><nonDerivativeTable><nonDerivativeHolding><securityTitle><value>Common Stock</value></securityTitle><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1375000</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeHolding><nonDerivativeHolding><securityTitle><value>Common Stock</value></securityTitle><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1676747</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>By Diosdado &amp; Maria C. Banatao Trust</value></natureOfOwnership></ownershipNature></nonDerivativeHolding><nonDerivativeHolding><securityTitle><value>Common Stock</value></securityTitle><postTransactionAmounts><sharesOwnedFollowingTransaction><value>680680</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>By Tallwood Partners LLC</value></natureOfOwnership></ownershipNature></nonDerivativeHolding></nonDerivativeTable><derivativeTable><derivativeTransaction><securityTitle><value>Put Option (Right to Sell)</value></securityTitle><conversionOrExercisePrice><value>0</value></conversionOrExercisePrice><transactionDate><value>2004-01-20</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>J</transactionCode><equitySwapInvolved>0</equitySwapInvolved><footnoteId id="F1"/></transactionCoding><transactionAmounts><transactionShares><value>1</value></transactionShares><transactionPricePerShare><value>0</value><footnoteId id="F1"/></transactionPricePerShare><transactionAcquiredDisposedCode><value>A</value></transactionAcquiredDisposedCode></transactionAmounts><exerciseDate><footnoteId id="F1"/></exerciseDate><expirationDate><value>2007-01-19</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>Common Stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>134900</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>By Diosdado &amp; Maria C. Banatao Trust</value></natureOfOwnership></ownershipNature></derivativeTransaction><derivativeHolding><securityTitle><value>Put Option (Right to Sell)</value></securityTitle><conversionOrExercisePrice><footnoteId id="F2"/></conversionOrExercisePrice><exerciseDate><footnoteId id="F2"/></exerciseDate><expirationDate><value>2004-03-05</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>Common Stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>500000</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>By Tallwood Partners LLC</value></natureOfOwnership></ownershipNature></derivativeHolding><derivativeHolding><securityTitle><value>Put Option (Right to Sell)</value></securityTitle><conversionOrExercisePrice><footnoteId id="F3"/><footnoteId id="F4"/></conversionOrExercisePrice><exerciseDate><footnoteId id="F3"/><footnoteId id="F4"/></exerciseDate><expirationDate><value>2004-03-05</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>Common Stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>250000</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>By Diosdado &amp; Maria C. Banatao Trust</value></natureOfOwnership></ownershipNature></derivativeHolding><derivativeHolding><securityTitle><value>Put Option (Right to Sell)</value></securityTitle><conversionOrExercisePrice><footnoteId id="F3"/><footnoteId id="F4"/></conversionOrExercisePrice><exerciseDate><footnoteId id="F3"/><footnoteId id="F4"/></exerciseDate><expirationDate><value>2004-03-12</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>Common Stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>150000</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>By Diosdado &amp; Maria C. Banatao Trust</value></natureOfOwnership></ownershipNature></derivativeHolding><derivativeHolding><securityTitle><value>Put Option (Right to Sell)</value></securityTitle><conversionOrExercisePrice><footnoteId id="F3"/><footnoteId id="F4"/></conversionOrExercisePrice><exerciseDate><footnoteId id="F3"/><footnoteId id="F4"/></exerciseDate><expirationDate><value>2004-03-12</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>Common Stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>100000</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>By Diosdado &amp; Maria C. Banatao Trust</value></natureOfOwnership></ownershipNature></derivativeHolding><derivativeHolding><securityTitle><value>Put Option (Right to Sell)</value></securityTitle><conversionOrExercisePrice><footnoteId id="F3"/><footnoteId id="F4"/></conversionOrExercisePrice><exerciseDate><footnoteId id="F3"/><footnoteId id="F4"/></exerciseDate><expirationDate><value>2005-06-28</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>Common Stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>300000</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>By Diosdado &amp; Maria C. Banatao Trust</value></natureOfOwnership></ownershipNature></derivativeHolding><derivativeHolding><securityTitle><value>Put Option (Right to Sell)</value></securityTitle><conversionOrExercisePrice><footnoteId id="F3"/><footnoteId id="F4"/></conversionOrExercisePrice><exerciseDate><footnoteId id="F3"/><footnoteId id="F4"/></exerciseDate><expirationDate><value>2005-09-09</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>Common Stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>100000</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>By Diosado &amp; Maria C. Banatao Trust</value></natureOfOwnership></ownershipNature></derivativeHolding><derivativeHolding><securityTitle><value>Put Option (Right to Sell)</value></securityTitle><conversionOrExercisePrice><footnoteId id="F3"/><footnoteId id="F4"/></conversionOrExercisePrice><exerciseDate><footnoteId id="F3"/><footnoteId id="F4"/></exerciseDate><expirationDate><value>2005-09-23</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>Common Stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>100000</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>By Diosdado &amp; Maria C. Banatao Trust</value></natureOfOwnership></ownershipNature></derivativeHolding><derivativeHolding><securityTitle><value>Put Option (Right to Sell)</value></securityTitle><conversionOrExercisePrice><footnoteId id="F3"/><footnoteId id="F4"/></conversionOrExercisePrice><exerciseDate><footnoteId id="F3"/><footnoteId id="F4"/></exerciseDate><expirationDate><value>2006-06-30</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>Common Stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>280000</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>By Diosdado &amp; Maria C. Banatao Trust</value></natureOfOwnership></ownershipNature></derivativeHolding><derivativeHolding><securityTitle><value>Put  Option (Right to Sell)</value></securityTitle><conversionOrExercisePrice><footnoteId id="F3"/><footnoteId id="F4"/></conversionOrExercisePrice><exerciseDate><footnoteId id="F3"/><footnoteId id="F4"/></exerciseDate><expirationDate><value>2006-10-13</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>Common Stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>150000</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>By Diosdado &amp; Maria C. Banatao Trust</value></natureOfOwnership></ownershipNature></derivativeHolding></derivativeTable><footnotes><footnote id="F1">The Reporting Person reports indirect ownership of a pre-paid forward contract (Right to Sell) held by the Diosdado &amp; Maria C. Banatao Trust (the &quot;Trust&quot;) entered into on 01/20/04 with a settlement date on 01/19/07.  The contract provides that the Trust deliver a certain number of shares at the end of the contract depending on the Issuer's common stock price on each such date.  Exact pricing terms are determined in accordance with the contract. </footnote><footnote id="F2">The Reporting Person also has indirect ownership of a pre-paid forward contract (Right to Sell) held by Tallwood Partners LLC (the &quot;Partnership&quot;).  The contract provides that the Partnership deliver a certain number of shares at the end of the contract depending on the Issuer's common stock price on such date. The contract for 500,000 shares was entered into on 11/30/01 with a settlement date on 03/05/04.  Exact pricing terms are determined in accordance with the contract.</footnote><footnote id="F3">The Reporting Person also has indirect ownership of eight prepaid forward contracts (Right to Sell) held by the Trust.. The contracts provide that the Trust will deliver a certain number of shares at the end of the contract depending on the Issuer's common stock price on such date. 1) a contract for 250,000 shares was entered into on  03/07/02 with a settlement date on 03/05/04; 2) a contract for 150,000 shares was entered into on 03/12/02 with a settlement date on 03/12/04; 3) a contract for 100,000 shares was entered into on 04/01/02 with a settlement date on 03/12/04; 4)  a contract for 300,000 shares was entered into on 06/28/02 with a settelement date on 06/28/05; 5) a contract for 100,000 shares was entered into on 09/10/02 with a settlement date on 09/09/05; 6) a contract for 100,000 shares was entered into on 09/23/02 with a settlement date on 09/23/05; 7) a contract for 280,000 shares was entered into on 07/02/03 with a settlement date </footnote><footnote id="F4">Continuation of Footnote No. 2:  on 06/30/06; 8) a contract for 150,000 shares was entered into on 10/14/03 with a settlement date on 10/13/06.   Exact pricing terms for each contract are determined on the respective settlement dates in accordance with the applicable contract.</footnote></footnotes><remarks/><ownerSignature><signatureName>Diosdado Banatao</signatureName><signatureDate>2004-01-22</signatureDate></ownerSignature></ownershipDocument>

