Complex sentence: It is said to have come about in the early 18th century, when neighbors of Sensō-ji were granted permission to set up shops on the approach to the temple.
Split into simpler sentences: It is said to have come about in the early 18th century. Neighbors of Sensō-ji were allowed to set up shops on the approach to the temple.