Mainvilliers () is a commune in the Eure-et-Loir department in northern France. The sixth largest city in the department by population, its inhabitants are called Mainvillois and Mainvilloises.