The present disclosure concerns the use of an anti-SIRPa compound able to inhibit the polarization of anti-inflammatory M2-type macrophages and/or favors pro-inflammatory M1-type macrophages. In a preferred embodiment, such compound is used to treat cancer. Interestingly, this disclosure allows to treat cancer through an indirect pathway involving the immune system.