Modulation and templating are two synthetic techniques that have garnered significant attention over the last several years for the preparation of hierarchically porous metal-organic frameworks (HP-MOFs). In this study, by using fatty acids with different lengths and concentrations as dual-functional modulators/templates, we were able to obtain HP-MOFs with tunable mesopores that exhibit different pore diameters and locations. We found that the length and concentration of the fatty acids can determine if micelle formation occurs, which in turn dictates the porosity of the resulting HP-MOFs. The HP-MOFs with different mesopores differed in their performance in gas uptake and dye adsorption, and the structure-performance relationships were ascribed to the pore diameters and locations. This approach could provide a potentially universal method to efficiently introduce hierarchal mesopores into existing microporous MOF adsorbents with tunable properties.