Answer: The Song Dynasty
Explanation: By the Song Dynasty (AD 960–1279), major family names were listed in the ancient poem Baijiaxing or Hundred Surnames. Containing 504 surnames and 564 characters, the poem became the classic crash course for teaching young scholars in Imperial China to read.