qnli question: Nigeria was under military rule for how long? sentence: Nigeria regained democracy in 1999 when it elected Olusegun Obasanjo, the former military head of state, as the new President of Nigeria.