City was established by Grand Crown Hetman Jan Amor Tarnowski City received the Magdeburg right City received the Magdeburg right Ternopil.