The Silla Kingdom was weakened and overthrown and founded the Koryo Dynasty. The rulers adopted ideas from China but put in Korean features. The Koryo adopted a civil service examination system. But only nobles could take the test and government positions were inherited. Consequently the society was divided up among the powerful and the weak.