The practice was a common way for slave girls endowed with beauty and intelligence to advance in the court, especially if they gave birth to sons; under the Abbasids and Ottomans, several of them were raised in rank to queen.