The area fell under the Grand Duchy of Lithuania in 1353. The city was burned again by Crimean khan Meñli I Giray in 1482 and 1497 and in the 15th to 17th centuries it changed hands several times between Lithuania, Muscovy (1408–1420 and from 1503), and the Polish-Lithuanian Commonwealth (1618–1648), where it was granted Magdeburg rights in 1623 and in 1635 became a seat of Chernihiv Voivodeship. The area's importance increased again in the middle of the 17th century during and after the Khmelnytsky Uprising. In the Hetman State Chernihiv was the city of deployment of Chernihiv Cossack regiment (both a military and territorial unit of the time).