A by-election is an election used to fill an office that has become vacant between general elections. In most cases these elections occur after the incumbent dies or resigns, but they also occur when the incumbent becomes ineligible to continue in office.