At some point in the Tenryaku era (947–957) he passed the civil service exam, and after serving in such positions as vice-governor of Tanba province (丹波介) he attained to the post of "Zusho-no-kami (図書頭), head of the , a government agency responsible for compiling histories.