The treatment of ballast water has been garnering increasing attention, with planktonic algae removal being a crucial part. Coagulation has been demonstrated as an effective method for algae removal, albeit few coagulants exhibit excellent coagulation performance in both freshwater and seawater. To address this issue, the cationic flocculant poly dimethyl diallyl ammonium chloride (PDADMAC) was composited with titanium xerogel coagulant (TXC), abbreviated as PT. Using the algae Cyclotella meneghiniana as the research object, the algal removal performance and mechanisms of PT in freshwater and seawater were investigated. Cell integrity, superoxide dismutase (SOD) activity, and malondialdehyde (MDA) content of C. meneghiniana during floc storage were also evaluated. The PT composite coagulant exhibited excellent coagulation performance in both freshwater and seawater. Its algal removal ability was superior to TXC and the commercial coagulants polyaluminum chloride (PAC) and polymerized ferrous sulfate (PFS), with removal rates for C. meneghiniana reaching 98.3 % in freshwater and 98.4 % in seawater at a 80 mg/L dosage. PT also exhibited excellent removal performance over wide dosage and pH ranges. PT acted via distinct coagulation mechanisms in freshwater and seawater, with charge neutralization and bridging played major roles in freshwater and sweeping being important in seawater. The floc storage experiment indicated that the coagulation process did not directly lead to algal cell fragmentation, but PT accelerated and exacerbated oxidative stress and oxidative damage to algal cells during floc storage. Furthermore, PT also showed excellent removal performance for the marine diatom Skeletonema costatum and the freshwater cyanobacteria Cylindrospermopsis raciborskii. This work not only provides a novel approach for algae removal in ballast water, but also enhances our understanding of the coagulation behavior of titanium-based coagulants in different water environments.