Eighty-five MPs supported Peter O'Neill, with the opposition only mustering 21 votes in a special sitting of parliament.
Police shooting in June of university students calling on Mr O'Neill to resign brought on the vote.
Stefan Armbruster has been following events.