Mohammed Daoud Khan, Prime Minister of Afghanistan at the time, worked hard for the development of modern industries, and education in the country. In July 1973, Daoud Khan staged a bloodless coup d'état while Zahir Shah was not in the country. The next month, Zahir Shah abdicated, hoping to avoid a civil war, which officially marked the end of the Kingdom of Afghanistan, and the beginning of the Republic.