This document presents the design and simulation of a 4x4 MIMO microstrip patch antenna for device-to-device (D2D) communication in 5G applications, operating at a frequency range of 3.3-4.2 GHz. The proposed antenna, made of Rogers RO4350B substrate, shows improved capacity and reduced interference through beamforming techniques, achieving a return loss of -40.045 dB and efficiency of approximately 33.41%. The findings indicate that the smart antenna significantly enhances network performance and energy efficiency in communication systems.