OBJECTIVE: Bilirubin is an antioxidant that may suppress lipid oxidation. Elevated bilirubin is associated with decreased cardiovascular events in HIV-uninfected populations. We examined these associations in people living with HIV (PLWH). METHODS: Potential myocardial infarctions (MIs) and strokes were centrally adjudicated. We examined MI types: type 1 MI (T1MI) from atherosclerotic plaque instability and type 2 MI (T2MI) in the setting of oxygen demand/supply mismatch such as sepsis. We used multivariable Cox regression analyses to determine associations between total bilirubin levels and outcomes adjusting for traditional and HIV-specific risk factors. To minimize confounding by hepatobiliary disease, we conducted analyses limited to bilirubin values <2.1 mg/dL; among those with fibrosis-4 values <3.25; and among everyone. We repeated analyses stratified by hepatitis C status and time-updated atazanavir use. RESULTS: Among 25,816 PLWH, there were 392 T1MI and 356 T2MI during follow-up. Adjusted hazard ratios for the association of higher bilirubin levels with T1MI were not significant. Higher bilirubin levels were associated with T2MI. By contrast, among PLWH on atazanavir, higher bilirubin levels were associated with fewer T2MI (hazard ratio 0.56:0.33-1.00). Higher bilirubin levels among those on atazanavir were associated with fewer T1MI combined with ischemic stroke. LIMITATIONS: Analyses were conducted with total rather than unconjugated bilirubin. CONCLUSIONS: Among PLWH, higher bilirubin levels were associated with T2MI among some subgroups. However, among those on atazanavir, there was a protective association between bilirubin and T2MI. These findings demonstrate different associations between outcomes and elevated bilirubin due to diverse causes and the importance of distinguishing MI types.