How did the Tang dynasty lose power to be succeded by the Song dynasty in China?

在中国,唐朝是如何失去统治,而被宋朝取代的?