Casimir II the Just (Polish: Kazimierz II Sprawiedliwy; 28 October 1138 – 5 May 1194) was Duke of Wiślica in Lesser Poland from 1166 to 1173, and Duke of Sandomierz from 1173 onward. In 1177, he became ruler of the Polish Seniorate Province at Kraków and thereby High Duke of Poland — a position he held until his death, though briefly interrupted by his elder brother and predecessor, Mieszko III.
In 1186, Casimir inherited the Duchy of Masovia from his nephew Leszek, becoming the progenitor of the Masovian branch of the royal Piast dynasty and great-grandfather of the later Polish king Władysław I the Elbow-high. The honorific title "the Just" was not contemporary and first appeared in the 16th century.