The median voter theorem is a political theory that suggests that in a majority-rule voting system, the preferences of the median voter will dominate the outcome of elections. This concept connects directly to how political parties position themselves ideologically, as they often aim to capture the support of this pivotal voter to win elections.