Islamic astronomy enjoyed a golden age from the ninth to the sixteenth century AD. Great observatories in Baghdad, Damascus, Maragheh, Samarqand and Istanbul mapped the sky to set dates for religious and civil festivals and for astrology. Sophisticated calculations and models led to advances in mathematics.
Read here http://www.nature.com/nature/journal/v498/n7453/full/498161a.html