  We study a scenario to derive four-dimensional modular flavor symmetric
models from higher dimensional theory by assuming the compactification
consistent with the modular symmetry. In our scenario, wavefunctions in extra
dimensional compact space are modular forms. That leads to constraints on
combinations between modular weights and $\Gamma_N$ ($\Gamma_N')$
representations of matter fields. We also present illustrating examples.
