Emperor Gia Long unified Vietnam by conquering Hanoi.

Source