Carbon fiber composite continuous sucker rod string is more and more widely used in deep and ultradeep wells because of its light weight, high strength, and corrosion resistance. In order to analyze the dynamic problems of carbon fiber sucker rod string in actual oil wells, a transverse vibration simulation model of carbon fiber and steel (carbon-steel) hybrid rod string excited by buckling deformation in vertical wells is established with the compression buckling deformation of weighting rod. Considering the influence of wellbore trajectory and the constraint of tubing, the transverse vibration simulation model of carbon-steel hybrid rod string in directional wells under borehole trajectory excitation is also established in this paper. The finite difference method is used to discretize the well depth node, the numerical integration method (Newmark-β) is used to discretize the reciprocating periodic time node, and simulation methods for the contact and collision dynamics of rod-tubing in vertical wells and directional wells are formed. Through programming calculation, the distribution laws of transverse displacement, contact force, collision force, and bending stress of carbon-steel hybrid sucker rod string in vertical wells and directional wells along well depth are obtained. The simulation results in vertical wells show that the strong collision between the rod and tubing occurs near the bottom steel rod, while the upper load is small and the rod-tubing collision load of the upper rod of the carbon-steel hybrid rod string is much lower than that of the traditional steel rod string at the same position. Furthermore, the bending stress of the upper carbon fiber is also much less than that of the bottom steel rod. The simulation results in directional wells show that the collision phenomenon of the deflecting section and the bottom weighting rod compression section are the strongest and the rod-tubing contact pressure is also the largest. Second, the impact force of the upper carbon fiber rod is also much lower than that of the steel rod. Again, the maximum bending stress of the whole well occurs near the deviation section where the deviation angle changes suddenly. The transverse vibration mechanical model in directional wells in this paper lays a theoretical foundation and provides theoretical support for the optimal design of fracture and splitting prevention measures of carbon fiber sucker rod.