text: San Francisco attracts the fourth-highest number of foreign tourists of any city in the U.S., ranks 35th out of the 100 most visited cities worldwide,, and claims Pier 39 near Fisherman's Wharf as the third-most popular tourist attraction in the nation.