The end of the first jinn world was caused by their own corruption and misuse of magic. The last righteous kings, along with the first father of the jinn, tried to stop them, but failed. This led to the creation of the Devil's Triangle and the start of sorcery and divination.