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 .
Actually , Gneizno wasn 't the country 's very first capital .