A compact tunable guided-mode resonant filter (GMRF) in the telecommunication region near the 1550 nm wavelength is proposed in this paper. Particle swarm optimization (PSO) is used to design the GMRF. The tunability of the GMRF is achieved by an MEMS-based physical movement (in the horizontal or vertical direction) combined with an incident angle in a certain range. The results show that the resonant wavelength tuning of 110 nm (140 nm) is obtained by horizontal movement of 168 nm (vertical movement of 435 nm) combined with an about 11 ∘ variation of incident angle.