https://legislature.maine.gov/statutes/21-a/title21-Asec374-A.html
§374-A. General election candidates; vacancy
1. Vacancy and replacement of nominees. The Secretary of State shall declare the vacancy as provided in section 362‑A and a political committee may make a replacement nomination for the general election only if a person nominated for an office at a primary election or by a political committee:
A. Withdraws on or before 5 p.m. of the 2nd Monday in July preceding the general election in accordance with section 367; [PL 2011, c. 342, §12 (AMD).]
B. Withdraws because of a catastrophic illness, condition or injury that has permanently and continuously incapacitated the candidate and would prevent performance of the duties of the office sought, as long as the candidate or a member of the candidate's immediate family files with the Secretary of State a certificate accompanying the withdrawal request that describes the illness, condition or injury and is signed by a licensed physician; or [PL 2015, c. 447, §12 (AMD).]
C. Dies prior to the general election. [PL 1989, c. 341, §2 (NEW).]