Under Empress Suiko, Prince Shotoku established the twelve cap-ranks in 603 — promoting officials by merit rather than birth — and the Seventeen-Article Constitution in 604, a moral code for officials beginning ‘Harmony is to be valued, and discord avoided.’ Based on Buddhist and Confucian ideals, these frameworks began uniting Japan’s clans under the emperor, laying groundwork for the later Taika Reform and ritsuryo state.