The low bioavailability of widely used drugs, such as metformin (MFH), makes it necessary to administer constant doses to achieve the desired therapeutic effect, which leads to an increase in adverse effects and toxicity. In addition, their disposal also causes an environmental impact on both the ecosystem and organisms [1,2]. The development of materials based on biocompatible polymers is one of the most promising alternatives to reduce the dosage of active ingredients. Besides, these materials can function as adsorbents of micropollutants in the wastewater treatment [3]. In this research project, nanofibers and aerogels based on polyvinyl alcohol (PVA), gelatin (GLN) and β-cyclodextrin (β-CD) are obtained, as well as the functionalization of chitosan (CS) with β-CD for the development of porous materials with biomedical and environmental applications.