Answer
KP Sharma Oli's second term as Prime Minister ended on July 13, 2021. This was due to a Supreme Court ruling that declared his dissolution of the House of Representatives unconstitutional. Oli had dissolved the House in December 2020, triggering a political crisis in Nepal. The Supreme Court's ruling reinstated the House and ordered Oli to face a vote of confidence. Oli lost the vote and resigned as Prime Minister.