Patterns of clinical utilization and comparative effectiveness of anticoagulants for cancer-associated thrombosis (CAT) remain largely unexplored. To assess patterns of and factors associated with anticoagulant use and to evaluate the comparative effectiveness of contemporary anticoagulants in patients with active cancer in a clinical setting. This retrospective cohort study obtained deidentified OptumLabs electronic health record claims data from January 1, 2012, to September 30, 2019. Adult patients (≥18 years of age) with a primary cancer diagnosis (except skin cancer) during at least 1 inpatient or 2 outpatient visits within 6 months before the venous thromboembolism (VTE) date were included. Data were analyzed from April 2020 to September 2021. The patients were grouped according to the anticoagulant prescribed: (1) direct oral anticoagulants (DOACs), (2) low-molecular-weight heparin (LMWH), and (3) warfarin. Odds ratios (ORs) were used to present the association between factors of interest and utilization of anticoagulants. Main efficacy outcomes included risk of VTE recurrence and all-cause mortality. Main safety outcomes included the risk of hospitalization due to major bleeding. Relative treatment effect estimates were expressed as hazard ratios (HRs) with 95% CIs. This study included 5100 patients (mean [SD] age, 66.3 [12.3] years; 2670 [52.4%] women; 799 [15.7%] Black, 389 [7.6%] Hispanic, and 3559 [69.8%] White individuals). Overall, 2512 (49.3%), 1488 (29.2%), and 1460 (28.6%) filled prescriptions for DOACs, LMWH, and warfarin, respectively. The median (IQR) treatment duration was 3.2 (1.0-6.5) months for DOACs, 3.1 (1.0-6.8) months for warfarin, and 1.8 (0.9-3.8) months for LWMH. Patients with lung (OR, 2.07; 95% CI, 1.12-3.65), urological (OR, 1.94; 95% CI,1.08-3.49), gynecological (OR, 4.25; 95% CI, 2.31-7.82), and colorectal (OR, 2.26; 95% CI, 1.20-4.32) cancer were associated with increased prescriptions for LMWH compared with DOACs. LMWH (HR, 1.47; 95% CI, 1.14-1.90) and warfarin (HR, 1.46; 95% CI, 1.13-1.87) were associated with an increased risk of VTE recurrences compared with DOACs. LMWH was associated with an increased risk of major bleeding (HR, 2.27; 95% CI, 1.62-3.20) and higher all-cause mortality (HR, 1.61; 95% CI, 1.15-2.25) compared with DOACs. In this comparative effectiveness study of claims-based data, patients with CAT received anticoagulation for a remarkably short duration in clinical settings. DOACs was associated with a lower risk of VTE recurrence, major bleeding, and mortality. Warfarin may still be considered for patients with contraindications to DOACs and those with poor persistence on LMWH.