Heart failure (HF) prevention is paramount to public health in the 21st century. To examine incident HF and its subtypes with preserved ejection fraction (HFpEF) and reduced EF (HFrEF) according to accelerometer-measured physical activity (PA) and sedentary time. This was a prospective cohort study, the Objective Physical Activity and Cardiovascular Health (OPACH) in Older Women study, conducted from March 2012 to April 2014. Included in the analysis were women aged 63 to 99 years without known HF, who completed hip-worn triaxial accelerometry for 7 consecutive days. Follow-up for incident HF occurred through February 2022. Data were analyzed from March to December 2023. Daily PA (total, light, moderate to vigorous PA [MVPA], steps) and sedentary (total, mean bout duration) behavior. Adjudicated incident HF, HFpEF, and HFrEF. A total of 5951 women (mean [SD] age, 78.6 [6.8] years) without known HF were included in this analysis. Women self-identified with the following race and ethnicity categories: 2004 non-Hispanic Black (33.7%), 1022 Hispanic (17.2%), and 2925 non-Hispanic White (49.2%). There were 407 HF cases (257 HFpEF; 110 HFrEF) identified through a mean (SD) of 7.5 (2.6) years (range, 0.01-9.9 years) of follow-up. Fully adjusted hazard ratios (HRs) for overall HF, HFpEF, and HFrEF associated with a 1-SD increment were 0.85 (95% CI, 0.75-0.95), 0.78 (95% CI, 0.67-0.91), and 1.02 (95% CI, 0.81-1.28) for minutes per day total PA; 0.74 (95% CI, 0.63-0.88), 0.71 (95% CI, 0.57-0.88), and 0.83 (95% CI, 0.62-1.12) for steps per day; and 1.17 (95% CI, 1.04-1.33), 1.29 (95% CI, 1.10-1.51), and 0.94 (95% CI, 0.75-1.18) for minutes per day total sedentary. Cubic spline curves for overall HF and HFpEF were significant inverse for total PA and steps per day and positive for total sedentary. Light PA and MVPA were inversely associated with overall HF (HR per 1 SD: 0.88; 95% CI, 0.78-0.98 and 0.84; 95% CI, 0.73-0.97) and HFpEF (0.80; 95% CI, 0.70-0.93 and 0.85; 95% CI, 0.72-1.01) but not HFrEF. Associations did not meaningfully differ when stratified by age, race and ethnicity, body mass index, physical function, or comorbidity score. Results for sedentary bout duration were inconsistent. Higher accelerometer-measured PA (MVPA, light PA, steps per day) was associated with lower risk (and greater total sedentary time with higher risk) of overall HF and HFpEF in a racially and ethnically diverse cohort of older women. Increasing PA and reducing sedentary time for primary HFpEF prevention may have relevant implications for cardiovascular resilience and healthy aging in later life.