We model voters' gender bias as a prejudice on women's competence coming from a distorted prior. We analyse the effect of this bias in a two-period two-party election in which voters care about both ideology and competence. We find that female politicians are less likely to win office but, when...