Borrowed from French, from Ottoman Turkish دیوان (divan), from Classical Persian دیوان (dēwān), from Middle Persian d(p)ywʾn' (dēwān, “archive, collected writings”), from Sumerian 𒁾 (dub). Compare mattress, from Arabic (both of Middle Eastern origin, due to the local custom of lying on padding on floor being foreign to Europeans). Doublet of dewan, douane, and diwaniya.