Complex sentence: The city was renamed Datong in 1048 AD and sacked again at the end of the Ming Dynasty (1649 AD), but promptly rebuilt in 1652 AD.
Split into simpler sentences: The city was renamed Datong in 1048 AD. It was sacked again at the end of the Ming Dynasty (1649 AD), but promptly rebuilt in 1652 AD.