Write a brief summary of Nezami Ganjavi's Layli and Majnun.

Layli and Majnun is a Persian poem written by Nezami Ganjavi about star-crossed lovers in the Middle East. Layli is a beautiful woman from one tribe and she falls in love with Qays, the prince of a different Arab tribe. Qays, later called Majnun (insane) by his family, is smitten with Layli, but his behavior seems juvenile to Layli's tribe, so her parents reject Majnun's marriage offer and are intent on marrying her to another man. Majnun goes crazy and wanders the desert writing love songs about Layli. A war erupts between Majnun and Layli's family. Eventually, driven entirely insane, Majnun dies calling out Layli's name, and Layli separately passes away of heartbreak, thinking of Majnun.