The grounds of a shrine contain both sessha (auxiliary shrines), dedicated to deities closely related to that of the main shrine or a kami that was originally enshrined on the site, and massha (subordinate shrines), dedicated to deities other than above mentioned, which are collectively known as 'Setsumatsusha'.
神社の敷地（境内）には、その神社の祭神に関係のある神や元々その土地に祀られていた神を祀る摂社や、それ以外の神を祀る末社があり、両者をあわせて摂末社と総称する。