Ethane is selectively adsorbed over ethylene in their mixtures on the zeolite imidazolate framework ZIF-7. In packed columns, this results in the direct production of pure ethylene. This gas-phase separation is attributed to a gate-opening effect in which specific threshold pressures control the uptake and release of individual molecules. These threshold pressures differ for the different molecules, leaving a window of selective uptake operation. This phenomenon makes ZIF-7 a perfect candidate for the separation of olefins from paraffins, since in contrast to most microporous materials, the paraffin is selectively adsorbed. Mixture adsorption, as studied by breakthrough experiments, demonstrates that gate-opening effects can be effectively used to separate molecules of very similar size.