The Speaker of the House would continue as the president
If both the President and Vice President are unable to serve, the Speaker of the House of Representatives becomes President. This succession is established by the Presidential Succession Act of 1947. The Speaker takes over until a new President is elected or appointed.
;