The Hakkakudo (octagon hall) located at Yawata-takabo, Yawata City, is currently a hall outside the grounds of Shobo-ji Temple, but it was originally built between 1213 and 1219 in the grounds of Iwashimizu Hachiman-gu Shrine on the order of Zenpoji Yusei, who was a member of the shake (a family of Shinto priests serving a shrine on a hereditary basis) of the Iwashimizu Hachiman-gu Shrine, before being shifted to the present place following the separation of Buddhism and Shintoism.
なお、八幡市八幡高坊にある八角堂は現在正法寺の境外仏堂となっているが、八角堂は建保年間（1213年～1219年）石清水八幡宮の社家善法寺祐清が石清水八幡宮の境内に建立したもので、神仏分離に伴い現在地に移されたものである。