The sentence describes an action ('is visited') done by someone or something ('thousands of tourists'). The preposition 'by' is used to indicate the agent in a passive sentence.
6. B by