A period of anarchy at the end of Twosret's short reign saw a native reaction to foreign control leading to the execution of Bay and the enthronement of Setnakhte, establishing the Twentieth Dynasty.