The Kimiya-yi Sa'ādat was written towards the end of his life shortly before 499 AH/1105 AD. During the time before it was written, the Muslim world was considered to be in a state of political, as well as intellectual unrest.
The Kimiya-yi Sa'ādat was written in its author's later years, just before 499 AH/1105 AD. This period saw the Muslim world beset by turmoil in both its political and intellectual landscapes.