In 1033, Count Baldwin IV of Flanders took the city as a frontier post against emperor Henry III.
In the past - Russian and Soviet frontier post at Amu Darya.