The story begins in 1808, the thirteenth year of the Jiaqing reign. Residents of the South Street area of the district seat, today's Xinmin Village, pooled their money to build a Mazu temple. It was a modest two-hall building facing east toward the Pacific, in keeping with the tradition that the sea goddess should watch over people at sea. The Han settlers had only reached this area, then called Wuwei, in 1802, and rivers carried much of the region's traffic, so a temple to Mazu made good sense. In 1834, in the Daoguang reign, the whole temple was moved to the opposite side of the street and rebuilt facing west, toward the Snow Mountains. The old site became an opera stage, and a rear hall was added to create a grand three-hall layout. Legend gives the reason. A geomancer was said to have told the community that a west-facing temple would bring one scholar after another success in the imperial examinations. The faithful and local gentry chose that honor over the sea-facing tradition. In 1868 Yilan produced its first jinshi, the highest degree of the imperial examinations, a man named Yang Shifang. Locals took it as proof that the move had worked. Whatever you make of the geomancy, the result is a Mazu temple that faces the mountains, a rarity in Taiwan.