 However, due to their nuanced nature treatment on the mentally ill could not be generalized as it was in medieval Europe  This term was gradually redefined among the educated, and was defined by Avicenna as "one who suffers from a condition in which reality is replaced with fantasy".In the Islamic world, special legal protections were given to the mentally ill.This attitude was reinforced by scripture, as exemplified in Sura 4