On May 29, 1999, Abubakar transferred power to the winner of the 1999 presidential election, former military ruler General Olusegun Obasanjo as the second democratically elected civilian President of Nigeria heralding the beginning of the Fourth Nigerian Republic. This ended almost 33 years of military rule from 1966 until 1999, excluding the short-lived second republic (between 1979 and 1983) by military dictators who seized power in coups d'état and counter-coups.