Nevertheless, this delayed the Qarmatian attack on Fustat for two months, and gave Jawhar time to prepare a line of fortifications and a trench at Ayn Shams, north of the capital, stretching for 10 kilometers from the Nile to the Muqattam hills.