Abstract A magic-wavelength optical dipole trap (ODT) can eliminate the differential light shift of transition between atomic states, so that the transition frequency between the two states is the same as that in free space, which is of great significance for exploring atomic structure. Here we calculate the dynamic polarizabilities of the 6S 1/2 ground state and the 6P 1/2 excited state of the cesium atom which are connected by the D1 line, by using the relativistic coupled cluster method, and obtain magic wavelengths of ODT laser for trapping the two states simultaneously. By using these magic wavelengths, we calculate oscillator strengths of the 6P 1/2 → 7D 3/2 transition for linearly and circularly polarized lights. Furthermore, we analyze the influence of magic wavelengths on oscillator strengths.