We hypothesize and find evidence consistent with foreign firms being tax-favored acquirers of U.S. targets with greater locked-out earnings because they can avoid the U.S. tax on repatriations. This effect is economically significant; a standard deviation increase in lockout is associated with a 12% relative increase in the likelihood that an acquirer is foreign. We also find evidence that foreign acquirers of the target firms are more likely to be residents of countries that use territorial tax systems, as the tax advantages for a foreign firm acquiring a U.S. target with locked-out earnings are even greater for these acquirers.