Adopting healthy lifestyle pillars promotes longer livesfree from major chronic diseases. The COVID-19 pandemic imposed behavioural changes and psychological burdens. The aim of this study was to assess changes in medical students' six lifestyle pillars that were imposed by the COVID-19 pandemic. This cross-sectional study included 548 Brazilian medical students' digitally collected demographic data and lifestyle characteristics from before and during the pandemic. The pandemic had a neutral impact on sleep quality anda predominantly negative impact on interpersonal relationships, exercise and eating. Approximately 67.5% students decreased their tobacco and alcohol use. Spirituality was maintained at 66%. Those who reported having emotional wellbeing (27.9%) during the pandemic fulfilled a higher number of pre-pandemic lifestyle pillars (median [IQR]) when compared with those who reported an absence of wellbeing (4 [3-4] pillars, compared with 3[2-4], P = 0.006). The results reinforce the importance of adhering to as many lifestyle pillars as possible to preserve emotional wellbeing during periods of stress such as those experienced during the pandemic.