The Piast dynasty was a Polish dynasty that ruled Poland as first lords in the 10th century , until 1370 .
The Piast dynasty was the first historical ruling dynasty of Poland .