A by-election is held when the member of parliament who represents that electorate retires or dies, or can no longer hold office. They occur before the MP's elected term is complete. By-elections contest only the single affected seat and often serve as a gauge of public sentiment between general elections.