It has the Indian Ocean to its east . It borders Somalia , Ethiopia , Sudan , Uganda , and Tanzania . Lying along the Indian Ocean to its southeast and at the equator , it is bordered by Somalia to the northeast , Ethiopia to the north , Sudan to the northwest , Uganda to the west and Tanzania to the south .