the ruling family of han then took control of the former qin empire which became the han empire.

How would the previous sentence be correctly capitalized?
The ruling family of Han then took control of the former Qin Empire which became the Han Empire.