But ere long it was found even beyond his powers; for after sending off a portion of the Khartoum population in safety down the river, the Mahdi's legions closed in upon him, and Khartoum was in a state of siege.