We tackle the issue of designing a transmit beampattern for multiple-input multiple-output (MIMO) radar while considering its coexistence with wireless communication systems. Our goal is to design a beampattern that can steer the mainlobe and regulate its gain level toward the desired direction. The significant challenge lies in concurrently enforcing the gain constraint along with the constant modulus constraint on the radar waveform. In our work, we propose a novel approach that entails solving a series of constrained quadratic programs to achieve constant modulus at convergence. Additionally, we demonstrate that each problem in the sequence admits a closed-form solution, ensuring analytical tractability. We assess the effectiveness of our proposed Mainlobe and Interference Control (MAIC) algorithm against state-ofthe-art MIMO beampattern design techniques, illustrating that MAIC attains the desired gain level while mitigating interference energy in undesired areas.INDEX TERMS MIMO radar, beampattern design, main lobe energy constraint, electronic steering, constant modulus, successive algorithm, co-existence