An antenna is the most important part of a wireless communication system. Wi-Fi has an omnidirectional radiation pattern that results in a limited range of emissions. Therefore, it needs an external antenna with a higher gain than the internal antenna. This research designs rectangular Yagi microstrip antenna with two-levels of directors which can work at 2.4 GHz frequency (Wi-Fi Application). The selection of material permittivity value and dimension setting is committed carefully in order to gain > 5 dB. At the time of simulation, optimization is performed by changing the dimension of driven, director, reflector, and distance between levels. The realization of the antenna is committed by using dielectric material with relative permittivity of 4.3. The antenna test results show a bandwidth gain of 7.98 dB, S11 parameter of -16.223 dB with a bidirectional radiation pattern. By selecting the material permittivity value and prudence in managing the antenna dimensions, it is proven to produce an antenna with target gain although the antenna only uses 1 branch and 2-levels of directors.