The invention discloses a 
physical layer security joint 
beamforming method for a 
bifunctional MIMO radar communication 
system, relates to the technical field of 
radar communication, and aims to solve a problem that two design defects exit in the prior art, namely, only an AN 
covariance matrix is designed and the low 
system secrecy rate is caused by adopting a 
relaxation algorithm with poor performance. According to the method, with utilization of a cost function of a 
radar transmission beam directional diagram, an 
MIMO radar performance constraint, a QoS (
communication quality of service) constraint, a PLS (
physical layer security constraint), the constraint of each antenna of a 
system and the constraint of total power of the system are added in sequence, an 
optimization problem is constructed, then SDR relaxation is utilized to solve the 
optimization problem, and the 
optimization problem is solved. And the optimal solution of the relaxation problem is also the optimal solution of the original problem. According to 
simulation analysis, under the condition that the multi-user communication security problem of the dual-function radar and the communication system is considered, the radar performance of an original system can be well guaranteed through the SDRPLS 
algorithm and the ZFPLS 
algorithm, and meanwhile the secrecy rate of the system is improved.