Microbial communities and their environment are in a constant and fascinating interplay, shaping each other in complex ways. But how exactly does this happen? How can we characterize these dynamics? These are the kinds of questions that drove my curiosity during my Master's thesis and led me to discover methodological gaps in the field. In my PhD, I am developing a novel analysis tool designed to accurately characterize the environmental factors that shape microbial community compositions. This approach applies a set of statistical methods and machine learning algorithms, aiming to provide a comprehensive and versatile tool that can be applied across different settings and studies.