After a series of Mongol invasions of Korea between 1231 and 1281, Goryeo signed a treaty in favor of the Mongols and became a vassal state. Kublai was declared Khagan of the Mongol Empire in 1260 and established his capital at Khanbaliq in 1264. Japan at the time was ruled by the Shikken of the Hojo clan, who had intermarried with and wrested control from Minamoto no Yoriie, shogun of the Kamakura shogunate, after his death in 1203. The inner circle of the Hojo clan had become so preeminent that they no longer consulted the council of the shogunate ), the Imperial Court of Kyoto, or their gokenin vassals, and made their decisions at private meetings in their residences ). The Mongols also made attempts to subjugate the native peoples of Sakhalinthe Ainu, Orok, and Nivkh peoplesfrom 1260 to 1308.

Based on the above article, answer a question. How many years did Kublai take to establish a capital after becoming Khagan?
4