This paper addresses the issue of constructing millimeter band antennas using dielectric waveguide structures. A new type of linear antenna, incorporating metal pins on the side walls of the grooved dielectric waveguide, is proposed for generating polarization perpendicular to the waveguide axis. However, these antennas suffer from the drawback of cross-polarized radiation in directions close to the waveguide axis. To overcome this limitation, a modified antenna design with transverse polarization is introduced, featuring a closed groove waveguide with a longitudinal slot at the top of the wall. The paper provides a comparison between two types of dielectric waveguide antennas: first, waveguide antenna with grooves in the dielectric which results in longitudinal polarization, and second, waveguide antenna with quarter-wavelength pins which results in transverse polarization. Electrodynamic modeling data are provided to demonstrate the effectiveness of the proposed antennas for satellite, 5G antenna, and radar applications. Finally, an antenna of quarter-wavelength pins is proposed with a frequency of 39 GHz, a gain of 19.8 dBi, and a width of the radiation pattern of 3.2$$^{\circ }$$
∘
, and a sidelobe level (SLL) of -13.3 dB has been achieved.