is a Shinto shrine located in the city of Yawata in Kyoto Prefecture, Japan. It is one of the Twenty-Two Shrines in the Heian period ranked system of Shinto shrines, and along with the Ise Grand Shrine, one of the two royal ancestral shrines for the Imperial family. It is one of the three major Hachiman shrines, along with Usa Jingà « in Usa, Oita and either Hakozaki Shrine (Higashi-ku, Fukuoka) or Tsurugaoka Hachiman-gà « (Kamakura, Kanagawa). Ten buildings of the shrine, including the main hall, have been designated as National Treasures. In January 2012, the grounds of the shrine were designated as a National Historic Site
The kami enshrined at Iwashimizu Hachiman-gà « is Hachiman, which is identified here as a trinity consisting of:
In 859, a monk from Daian-ji in Heijà Â-kyà Â, modern-day Nara, named Gyà Âkyà  (a disciple of Kà «kai) claimed to have received a divine message from Usa Jingà « in Buzen Province saying, "I will move my shrine to the peak of Mount Otoko near the capital and protect the country." The following year, in 860, Emperor Seiwa commenced construction on its earliest structures. However, according to the Kamakura period "Miya-dera Enji-shà Â," there was an "Iwashimizu-dera" on Mount Otoko before the founding of Iwashimizu-Hachiman-gu. Several roof tiles dating back to before the shrine's founding have been discovered on the grounds of the shrine, lending some physical evidence to this account.
This was a period of syncretism between Shinto and Buddhism (Shinbutsu-shà «gà Â), and from the beginning Iwashimizu was primarily a Buddhist complex (jingà «-ji) called , with a Yakushi Nyorai as its honzon. In 862 it changed its official name to Gokoku-ji (è·å½寺) further emphasizing its Buddhist nature.
Iwashimizu Hachiman-gà «ji was regarded by the Imperial Court as the guardian of the ura-kimon, or supernaturally vulnerable southwestern direction of Heian-kyà Â, serving a position analogous to Enryaku-ji on Mount Hiei, which guarded the northeastern direction. Due to its proximity to the capital, the shine was regarded in the Engishiki records of 939 as in a position second only the Ise Grand Shrine. The shrine became the object of Imperial patronage throughout the Heian period. In 965, Emperor Murakami ordered that Imperial messengers were sent to report important events to the guardian kami of Japan. These heihaku were initially presented to 16 shrines including the à Âharano Shrine. Over the course if its history, numerous emperors and members of the court came to the shrine to worship. In 979 Emperor Enyà « visited the shrine; and the shrine continued to be visited by nearly all the emperors until the reign of Emperor Go-Daigo, when the sovereigns began to live more secluded lives. The shrine overshadowed Usa Jingà « in the number of shà Âen landed estates under its control.
The shrine was also the clan shrine for the influential Minamoto clan, and its various cadet branches (including the Ashikaga clan). Especially after Minamoto no Yoshiie underwent his genpuku ceremony at the shrine, and took the nom-de-guerre of Hachimantarà  Yoshiie (堫幡太éÂÂ義家), the shrine came be associated with the samurai class and for victory in war. Branches of the shrine were established throughout Japan, wherever the Minamoto clan had landholdings. In 1456 Ashikaga Yoshimasa visited the shrine and all the officials of the Daijà Â-kan joined him in going there. However, after the à Ânin war (1467âÂÂ1477), Imperial visits were held in abeyance for 200 years. In the Edo period, the approaches to the shrine were lined with 48 sub-shrines.
After the Meiji restoration, in accordance with the Shinbutsu bunri edicts of the new Meiji government, the name of the shrine was changed in 1869 to "Otokoyama Hachiman-gà «". The honzon Yakushi Nyorai statue was moved to Tà Âzan-ji on Awaji island, and other statues to Zenhà Â-ji at the eastern foot of Mount Otoko. Most of the Buddhist temple structures were dismantled and relocated or destroyed. In 1871 under the Modern system of ranked Shinto Shrines the shrine was designated am , meaning that it stood in the first rank of government supported shrines under State Shinto. In January 1918, its name was officially changed to Iwashimizu Hachiman-gà «.
The Honden of the shrine consists of an inner hall and an outer hall. Where the eaves of the two halls meet there is a "golden gutter" donated by Oda Nobunaga in August 1580. Since it was built by imperial order of Emperor Seiwa in 859, it has burned down many times, undergoing 14 rebuilds and 17 repairs. The reason it is divided into an inner hall and an outer hall is because it is said that the gods move to the outer hall during the day and to the inner hall at night. All of the structures listed below are designated as National Treasures and all were constructed by order of Shogun Tokugawa Iemitsu in 1634.
In addition, theb shrine owns many structures and objects which have been designated Important Cultural Properties
A 2005 survey of the treasures at Iwashimizu Hachiman-gu revealed, among other things, the existence of a kris, a jeweled Indonesian dagger, which was subsequently exhibited at Kyoto National Museum as part of an exhibit entitled "Famous Swords from Kyoto's Temples and Shrines."