Second Northern War
The town saw rapid development in the second half of the 17th century when after Second Northern War town was important transport hub.