The Imam Shatiby may Allah have mercy upon him said that all the nations agreed that the Islamic law was set to guard the five necessities which are:religion,soul,offspring,money,mind.
The five necessities are tackled in brief in this article which demonstrates that societies which don’t care about them their end will be destruction.