Cancer can cause ascites through several mechanisms. Tumors may obstruct the lymphatic system, preventing the normal drainage of fluid. Additionally, aggressive tumors can increase vascular permeability, leading to fluid leakage. Certain cancers also secrete substances that alter fluid balance, exacerbating the accumulation of fluid.