Answer
King Salman of Saudi Arabia relieved Muhammad bin Nayef of all of his positions in 2017, including the position of Crown Prince. This move was made in order to consolidate power within the Saudi royal family and to ensure that the next king would be a member of the Salman branch of the family.