We here report on the implementation of a microwave lens for neutral polar molecules suitable to focus molecules in both low-field-seeking and high-field-seeking states. By using the TE{11m} modes of a 12 cm long cylindrically symmetric microwave resonator, Stark-decelerated ammonia molecules are transversally confined. We investigate the focusing properties of this microwave lens as a function of the molecules' velocity, the microwave power, and the frequency detuning Δ from the molecular resonance. Such a microwave lens can be seen as a first important step towards further microwave devices, such as decelerators and traps.