Throughout its history, many dynasties ruled over Vietnam in between periods of Chinese occupation. There are four main dynasties to note: the Ly, the Tran, the Le, and the Nguyen. First, the Ly Dynasty drove out the Chinese, ending a thousand year-long rule, and set up a centralized the government in Hanoi. Then came the Tran Dynasty, which repelled a Mongol attack in the Red River Delta under the command of general Tran Hung Dao. These two dynasties helped build the foundation of Vietnam, as people with long-standing love for their land.