Lesbian, gay, bisexual, trans, intersex, and queer (LGBTIQ+) individuals encounter persistent structural inequalities and discrimination that can lead to detrimental psychological and physiological health outcomes. Amid evolving legal landscapes, little attention has been directed toward understanding the physiological health effects of societal shifts on these communities. This study aims to explore the impact of a national marriage equality vote and associated debates on psychological and biological stress among LGBTIQ+ individuals and cisgender, heterosexual, endosex individuals (termed cis-heterosexual) in Switzerland. We gathered longitudinal survey and biological data collected in hair samples among LGBTIQ+ and cis-heterosexual individuals before, during, and after the 2021 national vote (survey data: NT1T2 = 954; NT2T3 = 880; biological data: NT1T2 = 393; NT2T3 = 354). Preregistered analyses reveal a notable increase in biological stress levels (i.e., cortisol and cortisone levels), but not perceived stress, among both LGBTIQ+ as well as cis-heterosexual individuals who were close to them during the campaign. Results further point out the negative impacts of the campaign against marriage equality (i.e., no-campaign) on LGBTIQ+ individuals' biological stress levels as well as on those of their allies. These effects were, however, moderated by exposure to the campaign for marriage equality (i.e., yes-campaign), indicating the powerful buffering effects of the yes-campaign on the impact of discrimination on individuals' health. However, these positive effects appear to come at a cost, potentially impacting the well-being of individuals engaged in advocating for the yes-campaign. This research underscores the lasting impact of political campaigns on individuals' health.