Near-infrared (NIR) photothermal conversion materials have recently received widespread attention due to their potential in diverse applications. However, highly efficient organic-based NIR photothermal agents remain limited. Developing strategies to enhance the efficiency of NIR photothermal materials and elucidating the relationship between the NIR photothermal performance and molecular aggregation are highly desired. Herein, we report two coordination polymers, in which the ONDI 2− ligands assemble into different π−π stacking arrangements. Compound 1 exhibits H-aggregation, while compound 2 displays X-aggregation. The X-aggregation in compound 2 extends the optical absorption into the NIR region and enhances the absorption intensity. Consequently, compound 2 demonstrates a 1.8-fold increase in NIR photothermal efficiency (68.6%) compared to compound 1 (38.8%), attributed to more effective π−π interactions in Xaggregation. In addition, both compounds show semiconductive properties, with conductivities of 2.1 × 10 −7 S/cm for compound 1 and 3.0 × 10 −7 S/cm for compound 2 at 30 °C in a nitrogen atmosphere. These properties arise from the synergistic effects of "bandlike" charge transport within crystals and "hopping" charge transport across grain boundaries. By integration of their NIR photothermal effects and semiconductive properties, compounds 1 and 2 show interesting NIR photoelectrical responses.