An ancient late Bronze Age fortified settlement was found in Drahovice. A Slavic settlement on the site of Karlovy Vary is documented by findings in Tašovice and Sedlec. People lived in close proximity to the site as far back as the 13th century and they must have been aware of the curative effects of thermal springs. Around 1350, Charles IV, Holy Roman Emperor organized an expedition into the forests surrounding modern-day Karlovy Vary during a stay in Loket. On the site of a spring, he established a spa called the Horké Lázne u Lokte (Hot Spas at Loket). The location was subsequently named "Karlovy Vary" after the emperor, who extolled the healing powers of the hot springs, at least according to legend. Charles IV granted the town privileges on 14 August 1370. Earlier settlements can also be found on the outskirts of today's town.