The Song Dynasty was established by a rebel general who overcame his later Zhou employer and went on to conquer the rest of the country. Military reforms produced two centuries of stability, but administrative costs reduced efficiency, and lack of preparedness invited invasion by Turks from the north, who established the Liao Dynasty, while the Song moved their capital to the south.