1560s, from Middle French compartiment "part partitioned off" (16c.), through Italian compartimento, from Late Latin compartiri "to divide," from com-, intensive prefix (see com-), + partis, genitive of pars "part" (see part (n.)).[compartment etymology, compartment origin, 英语词源]