This paper presents a beam control system for a graphene-based phased array antenna (PAA) using the proposed radio-over-fiber (RoF) in the THz and sub-THz bands. The generated pulses are modulated by the Mach-Zehnder modulator (MZM) and, by using the special design of the fiber under modulation instability (MI), can be amplified at the sideband of the carrier. Finally, changing the length of the compensating fiber in the bit-control system makes it possible to control the PAA beam pattern. Improving the bias voltage (V
π
) of the MZM, simplicity of the RoF system structure, and increasing the spontaneous gain caused by the MI phenomenon are the advantages of the proposed system. Therefore, it is an acceptable candidate for the beam control applications system. Also, the patch antenna is based on graphene and has a new structure. This antenna consists of radiation patches in an octagonal shape and a microstrip feed line. The antenna operates with appropriate radiation features, with gains of 12 dB and returns losses of less than -10 dB at 700 GHz bandwidth. All simulations are performed using the CST Microwave Studio and the Optiwave software.