Montmirail is a commune of the Marne department in the northeastern part of France.