9th-century Persian poet Rudaki, who lived under the reign of the Samanids, was also a musician and composed songs to his own poems. At the court of the Persianate Ghaznavid dynasty, who ruled Iran between 977 and 1186, 10th-century Persian poet Farrokhi Sistani composed songs together with songster Andalib and tanbur player Buqi. Lute player Mohammad Barbati and songstress Setti Zarrin-kamar also entertained the Ghaznavid rulers at their court.