Boys and girls were both provided with educational opportunities and they were taught to read, write, and study the Quran. Baghdad became a Muslim center of learning due to its many libraries attracting many scholars. Other cities contained different types of learning that furthered math, medicine, philosophy and more. They preserved learning of earlier civilizations by translating ancient Persina, Sanskrit, and Greek texts into Arabic.