There is growing interest in how genes affect political beliefs. To better understand the role of genes in politics, we examine the relationship between cognitive style (the need for cognition, the need for cognitive closure) and various measures of political attitudes (issue-based ideology, identity-based ideology, social ideology, economic ideology, authoritarianism, and egalitarianism). We show, for the first time, that the need for cognition and the need for cognitive closure are heritable and are linked to political ideology primarily, perhaps solely, because of shared genetic influences; these links are stronger for social than economic ideology. Although prior research demonstrated that Openness to Experience shares genetic variance with political ideology, we find that these measures of cognitive style account for distinct genetic variance in political ideology. Moreover, the genetic Openness-ideology link is fully accounted for by the need for cognition. This combination of findings provides a clearer understanding of the role of genes in political beliefs and suggests new directions for research on Big Five personality traits and ideology.