In August 1979 Macias' nephew from Mongomo and former director of the infamous Black Beach prison, Teodoro Obiang Nguema Mbasogo, led a successful coup d'état; Macias was arrested, tried, and executed. Obiang assumed the presidency in October 1979. The islands were renamed Bioko and Annobón. The new ruler faced the challenge of restoring order in a country that was in shambles—by the end of Masie Nguema's dictatorship, the state coffers were empty and the population had been reduced to only one-third of what it was at independence.