Scholars commonly hypothesise that the quality of public services affects voter behaviour. However, few have studied how public transport may influence vote choices, despite the fact that mobility constitutes a cornerstone of modern societies. To help fill this gap, we explore a novel data set combining information on individual voter characteristics with fine-grained travel-time data from Norwegian urban areas. In particular, we focus on the competitiveness of public transport vis-à-vis private cars. We find that in the Norwegian local elections of 2019, urban voters residing in neighbourhoods with competitive public transport are inclined to vote for the Greens. Conversely, living in areas with uncompetitive public transport increases the likelihood of voting for right-leaning populist parties. Both relationships hold even when we control for individual socio-demographic factors known to affect voting and location decisions.