On 20 October, PKB chairman Abdurrahman Wahid was elected, beating Megawati Sukarnoputri by 373 votes to 313, although her party (PDI-P) won the most votes in the legislative election and had one-third of the parliamentary seats. This triggered riots among Megawati's supporters. The following day, Megawati was nominated by Gus Dur's party (PKB) as vice president and got elected, beating Hamzah Haz from the PPP by 396 votes to 284. This ended the street protests.[4][5]
This was the first and only democratically indirect presidential election in Indonesia and the first presidential election that did not feature a candidate from the ruling party (Golkar).