In the 17th century, Mogadishu and parts of southern Somalia fell under the Hiraab Imamate and in the 19th century came under the Geledi Sultanate’s sphere of influence.In 1894 the Hiraab chiefs on behalf of Mogadishu had signed a treaty of peace, friendship and protection with Filonardi of the Italian Benadir Company.