The IRS allows you to claim either a foreign tax credit or deduction for income taxes you pay in foreign countries. However, if you claim the foreign earned income and housing exclusions, the foreign tax you pay on that income is not eligible for the credit or deduction. The purpose of the benefit is to eliminate you from paying tax twice on the same earnings and income.