Fine-tuning the microporosity of PIM-1 by heat treatment was applied to develop a suitable carbon molecular sieve membrane for ethylene/ethane separation. Pristine PIM-1 films were heated from 400 to 800°C under inert N2 atmosphere (<2ppm O2). At 400°C, PIM-1 self-cross-linked and developed polar carbonyl and hydroxyl groups due to partial dioxane splitting in the polymer backbone. Significant degradation occurred at 600°C due to carbonization of PIM-1 and resulted in 30% increase in cumulative surface area compared to its cross-linked predecessor. In addition, PIM-1-based CMS developed smaller ultramicropores with increasing pyrolysis temperature, which enhanced their molecular sieving capability by restricted diffusion of ethylene and ethane through the matrix due to microstructural carbon densification. Consequently, the pure-gas ethylene permeability (measured at 35°C and 2bar) decreased from 1600Barrer for the pristine PIM-1 to 1.3Barrer for the amorphous carbon generated at 800°C, whereas the ethylene/ethane pure-gas selectivity increased significantly from 1.8 to 13.