A classic question about democratic elections is how much they are able to influence politician behavior by forcing them to anticipate future reelection attempts, especially in contexts where voters are not paying close attention and are not well informed. We compile a new dataset containing roughly 780,000 bills, combined with more than 16 million roll-call voting records for roughly 6,000 legislators serving in U.S. state legislatures with term limits. Using an individual-level difference-in-differences design, we find that legislators who can no longer seek reelection sponsor fewer bills, are less productive on committees, and are absent for more floor votes, on average. Building a new dataset of roll-call votes and interest-group ratings, we find little evidence that legislators who cannot run for reelection systematically shift their ideological platforms. In sum, elections appear to influence how legislators allocate their effort in important ways even in low-salience environments but may have less influence on ideological positioning.