لم يكن الفقيه الأديب ابن حزم غافلا عما يدور في مجتمعه، وكان مدركا لتفشي ظواهر اجتماعية سلبية في هذا المجتمع، فقرر أن يواجهها بمؤلفات عدة، وألزم نفسه بأن يكون مربيا، وله رسائل عدة في هذا المجال منها كتابه الأشهر "طوق الحمامة في الأُلفَةِ والأُلَّاف"، وكان يعلم أن هذا المجتمع بكل معايبه ومثالبه لن يتقبل كتابا لفقيه عن الحب، وقد عبر ابن حزم عن ذلك بين ثنايا الكتاب في غير موضع، لعل أوضحها قوله: "وأنا أعلم أنه سيُنكر عليَّ بعضُ المُتعصبين عليَّ تأليفي لمثل هذا. وهكذا.. ومنذ ألف عام لم يخجل الفقيه المُحافظ أن يناقش موضوعًا شائكًا كهذا في كتاب مُفرد وعلى طول ثلاثين فصلًا يفصّل بلا حرج الحب بدءًا من ماهيته وعلاماته، ويسهب في فصوله ويفصل كل فصول الحب من الهجر والوصل، والسلو والوف&
Ibn Hazm (Arabic: ابن حزم) was an Andalusian Muslim polymath, historian, traditionist, jurist, philosopher, and theologian, born in the Córdoban Caliphate, present-day Spain. Described as one of the strictest hadith interpreters, Ibn Hazm was a leading proponent and codifier of the Zahiri school of Islamic jurisprudence, and produced a reported 400 works, of which only 40 still survive.
In all, his written works amounted to some 80,000 pages. Also described as one of the fathers of comparative religion, the Encyclopaedia of Islam refers to him as having been one of the leading thinkers of the Muslim world.