AI-Biruni was born at Khwarisnr in Uzbekistan. Khwarism was an important centre of knowledge and so he got the best education possible. He was a linguist – a scholar in many languages. He knew Syriac, Arabic, Persian, Hebrew and Sanskrit. He was not familiar with Greek. But he had read the books of Plato and other Greek philosophers through Arabic translations.
In 1017 Sultan Mahmud Gazni attacked Khwarism. He made many people prisoners and took them to Gazni. Al-Biruni was one of them. Although he came to Gazni as a prisoner, he began to like the place. He entered the services of Mahmud Gazni and remained in Gazni until he died at the age of 70.