Your spouse will need a Social Security number or Individual Taxpayer Identification Number (ITIN) to complete the filing process, whether you're filing a separate or joint married return. An undocumented immigrant can file for an ITIN with Form W-7.