Creating porous materials with desirable pore size and pore functionality is challenging. While crystalline porous frameworks exhibit well-defined pores and very high micropore surface areas (~ 7000 m2 g-1) they are hard to cast in devices due to insolubility. On contrary, amorphous 1D polymers constructed with rigid 3D building blocks are intrinsically porous as well as soluble in organic solvents. However, these amorphous polymers often lack accessible micropores and high micropore surface areas (~ 1000 m2 g-1). Our research focuses on understanding the key parameters to improve their porosity as well as processability of both types of materials. We work primarily on metal-organic frameworks (MOFs) and polymers of intrinsic microporosity (PIMs). Furthermore, we investigate the applications of these materials in chemical separation and energy technologies.