Filming lasted a month and took place in Ouarzazate, Morocco. Capaldi, Shepherd and Abili almost missed filming due to air travel disruption after the 2010 eruptions of Eyjafjallajökull in Iceland.