In 1805, during his father's struggle to establish himself as ruler of Egypt, the adolescent Ibrahim, at 16, was sent as a hostage to the Ottoman captain Pasha.