Thanesar (Sthanesvara) was the early capital associated with Emperor Harshavardhana before Kannauj gained greater importance.