sentences:  Gliwice was first mentioned as a town in 1276, however, it was granted town rights earlier.It was located on a trade route connecting Kraków and Wrocław and was part of various Piast-ruled duchies of fragmented Poland