The Liao dynasty became the first state to control all of Manchuria.[44] Before the Jurchens overthrew their Khitan rulers, married Jurchen women and Jurchen girls were raped by Liao dynasty Khitan envoys as a custom which caused resentment by the Jurchens against the Khitan.[45] Liao Khitan envoys among the Jurchens were treated to guest prostitutes by their Jurchen hosts. Unmarried Jurchen girls and their families hosted the Liao envoys who had sex with the girls.