The impact of ocean waves and crosswinds on ships has long been a focal point of research for many scholars. This paper proposes a stochastic ship rolling model influenced by crosswinds, ocean waves, and time delays. The safe operating region for ship navigation is presented through the phase space of the system. A quantitative discussion of the system is conducted using the stochastic Melnikov function, and the stochastic P-D bifurcation of the system is discussed using topological data analysis techniques. The research indicates that incorporating time delay feedback can effectively enhance the system’s stability.