Democratic Senator Al Franken of Minnesota announced his resignation Thursday after multiple women accused him of sexual misconduct. “In the coming weeks, I will be resigning as a member of the United States Senate,” Franken said.

Here’s what will happen following Sen. Franken’s resignation.

Senators are directly elected by the citizens of a state to serve for six year terms. This is guaranteed under the 17th Amendment of the U.S. Constitution. For his part, Franken last won re-election in 2014 and was up again in 2020.

The 17th Amendment also says that if a Senate seat is vacated, state legislators have the right to empower the governor to appoint someone to fill the seat for either the remainder of the term or until a special election. According to the National Conference of State Legislatures, states have some flexibility in how the seats are filled. Around 14 states require a special election be called, while the other 36 elect replacements during the next scheduled general election. Some states also have rules on how and if a governor can appoint someone to fill a vacated seat.

Under Minnesota law, the Governor can make temporary appointments to fill vacancies. Special elections are required to fill Senate seats. That law says that if the seat is vacated at least 11 weeks before the regular primary, the special election is held during the next November election. In 2018, the primary is scheduled for Aug. 14. If Franken resigns any time before the end of May, the special election to fill his seat would be held during the upcoming Midterm elections.

Something to keep in mind: 23 Democratic Senators are up for re-election in 2018, including 10 in states President Donald Trump won in the 2016 presidential election. Franken’s Democratic colleague and fellow Minnesotan, Sen. Amy Klobuchar, is running for re-election in 2018.

If Franken were to resign at any point after that 11-week threshold , the special election to replace him would be held at the “second November election after the vacancy occurs,” under state law.

The winner of that hypothetical special election would serve out the remainder of Franken’s term — until Jan. 2021 — and run to permanently fill the seat in 2020.

According to Minnesota Public Radio, the last time a Minnesota Senate seat was vacated was in Oct. 2002 when Sen. Paul Wellstone died in a plane crash. Then-Gov. Jesse Ventura appointed Dean Barkley to fill the vacated seat. But because Wellstone died just before an election, Barkley only served until Jan. 2003. That November, Norm Coleman was elected. And Coleman served until he was beaten by Sen. Franken in 2009, after a recount.

Get our Politics Newsletter. The headlines out of Washington never seem to slow. Subscribe to The D.C. Brief to make sense of what matters most. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Contact us at letters@time.com.