In order to consider the nonlinear three-dimensional (3D) equilibrium response of the resonant magnetic perturbation field, the nonlinear 3D equilibrium is discussed for the 3D perturbed tokamak. To model the magnetic topology, a nonlinear 3D equilibrium calculation code, which has been developed in stellarator research, is applied to the perturbed tokamak. That code does not assume the existence of perfectly nested flux surfaces. In the nonlinear 3D equilibrium calculation, the change of the magnetic topology is due to the nonlinear 3D equilibrium response, which is the lowest order plasma response appearing in the 3D steady state. The parallel current flow along perturbed field lines three-dimensionally drives the perturbed field to break the magnetic topology. This effect is significant along the separatrix and must be considered to interpret the experimental observations.