Did your spouse live with you all year? If so, then you can file a joint return and apply for an Individual Taxpayer Identification Number by filing Form W-7 with your tax return. For more information:
If you spouse does not qualify as a Resident for tax purposes, you can elect for him/her to be treated as a Resident.
Thank you for your question,