The Koryo,or Goryeo, Dynasty was founded 918 by Wang Geon. He unified all of Korea and restructured the government completely. He appointed himself king and made many reforms that covered issues such as agriculture and education. The previous governments had been tribal, but Geon ran a Monarchy and people had to pass exams before holding a Government position. Under Geon there were about 200 years of peace and prosperity. They still used many Confucian ideas, but they were a Buddhist society. They painted Buddhist images on their pottery and much of government was based on Buddhism.