Silla was the last of the Three Kingdoms to civilize and the most thoroughly Buddhist. In 527 Ichadon's martyrdom moved court and country, and King Beopheung prospered the dharma, building the Heungnyun temple; the Hwangnyong temple and its colossal Buddha came under King Jinheung; the faith grew under Kings Jinpyeong and Seondeok, and in 638 Jajang brought relics and precepts back from Tang China. Masters multiplied around unification: Uisang studied at Zhongnan and founded the Hwaeom line, Wonhyo reconciled the schools with his "harmonious dispute"; in 751 the chancellor Kim Daeseong rebuilt Bulguksa and cut the Seokguram grotto, whose stonework is the summit of Silla Buddhist art, now a World Heritage Site. The hwarang were Silla's school of officers: King Jinheung gathered beautiful youths as hwarang with followers in training, and the monk Wongwang gave the five precepts — "serve the lord with loyalty, serve parents with filial piety, trust friends, retreat not in battle, spare life with judgement" — and generals such as Kim Yushin came from this current, in truth an alloy of Buddhist ethics and native martial spirit. In the Silla–Tang unification war (the Silla–Tang war and unification) it was these hwarang commanders who sustained the state. Buddhism and the hwarang complemented each other to form Silla's "state founded on the teaching."