Châteaudun is a commune in the Eure-et-Loir department in northern France. It is a sub-prefecture of the department.