With the continued development of smart ocean, reliable acquisition, high-speed transmission and efficient processing of ocean information are becoming increasingly important in ocean research. Therefore, we consider a MIMO integrated detection and communication system for smart ocean, which shares the same spectrum resources on the same platform to simultaneously realize underwater target detection and communication. Firstly, we investigate two integrated waveform composition methods: communication signals, the superposition of communication and probing signals. We minimize the MIMO probe transmit beampattern matching error and cross-correlation of transmit beampattern under the constraints of the total power and communication user"s signal to interference plus noise ratio requirements. Then, for the two established beamforming design problems, they are transformed into quadratic semidefinite programming problems and solved applying semidefinite relaxation algorithm to obtain the beamforming matrix of integrated detection and communication. Finally, simulation results verify the feasibility of the beamforming design for MIMO integrated detection and communication.