He said that he would rather step down than pick a new prime minister rejected by demonstrators but as the constitution does not allow him to reject a nomination he would resign.
Parliament will now have to meet to discuss and vote on the resignation. If they endorse the move, Mr Salih will step down.