By the 17th century, the Hiraab Imamate was a powerful kingdom that ruled large parts of southern and central Somalia. It successfully revolted against the Ajuran Sultanate and established an independent rule for at least two centuries from the seventeen hundreds and onwards.