Magdeburg rights
In 1656, Kozelets was granted the Magdeburg rights. The Kozelets Cossack Rada elected Yakym Somko as the Hetman of the Cossacks in 1662. After the Tatar invasion of 1669, Kozelets was partially destroyed.