The possibility of forming the misfit-strain-induced out-of-interface prismatic dislocation loops (PDLs) in axially inhomogeneous hybrid two-phase nanowires with a transverse interface is theoretically studied. It is shown that, due to the misfit stresses caused by the contact of two crystalline materials with different lattice parameters, the PDLs of certain radii can generate at certain distances from the interface when the nanowire radius is larger than a critical value, which depends on the lattice misfit. The critical parameters of the relaxation process are calculated and discussed in detail.