The application discloses a method and device for adjusting a drilling trajectory of a horizontal well. First, a standard well used for stratum comparison with a well to be drilled is determined, and a horizontal well
geosteering model is established in combination with geological data and
drilling engineering data. A current well resistivity while drilling and a while drilling gamma curve are compared with a standard
well logging curve, and a target point vertical depth is calculated. In combination with a real-
time response of a while drilling azimuthal resistivity
boundary detection curve, a
landing point of a target layer is determined, and a suitable hole inclination angle is used to enter the layer. A drilling trajectory and a relative position relationship with a stratum interface are determined by fitting a while drilling
simulation curve of the horizontal well
geosteering model with a current well actual drilling curve. A stratum interface
azimuth and a distance from the trajectory to the interface are determined in real time by developing a while drilling azimuthal resistivity
boundary detection rapid inversion, and the horizontal section drilling trajectory is adjusted. In combination with
logging data and directional actual drilling characteristics, a layer position where the trajectory is located is judged, and a sand body distribution and a stratum change trend are predicted in combination with a regional seismic profile, so that the drilling trajectory is pre-adjusted.