Complex sentence: The first historicaly undisputed Piast ruler is Mieszko I from 10th century, until 1370 which is the date of death of king Casimir the Great.
Split into simpler sentences: The first historicaly undisputed Piast ruler is Mieszko I from 10th century. The dynasty ruled Poland until 1370 which is the date of death of king Casimir the Great.