What is the role of torii in Shintoism?

They are gates to mark the spot of sacred shrines.
They are religious leaders who teach Shinto practices.
They are large temples meant to mark sacred spots.
They are copies of sacred Shinto texts used in rituals.