For how long was Nigeria ruled by military control ?
He ruled Nigeria until 1993 when he temporarily handed power to the interim head of state Ernest Shonekan , being part of his promise to return democracy .