The Jin were succeeded by a series of short-lived dynasties: Liu Song (420–479), Southern Qi (479–502), Liang (502–557) and Chen (557–589). Because all of these dynasties had their capital at Jiankang except Liang, they are sometimes grouped together with Eastern Wu and Eastern Jin as the Six Dynasties. The rulers of these short-lived dynasties were generals who seized and then held power for several decades but were unable to securely pass power of rule onto their heirs to continue their dynasty successfully. Emperor Wu of Liang (502–549) was the most notable ruler of his age, being a patron of the arts and of Buddhism.