Krakew grew in importance and eventually became the country's capital in the 12th century (replacing Gniezno), when Duke Boleslaw the Wry Mouthed established his official residence on Wawel Hill.
Krakew was never the capital of the country.