Complex sentence: Szombathely was destroyed during the Mongol invasion of Hungary in 1241--1242 but was rebuilt shortly after and was granted Free royal town status in 1407.
Split into simpler sentences: Szombathely was destroyed during the Mongol invasion of Hungary in 1241--1242 but was rebuilt shortly after. It was granted Free royal town status in 1407.