In complex indoor environments, achieving satisfactory pedestrian localization using a single positioning technique proves challenging. For instance, Ultra-Wideband (UWB) positioning encounters non-line-of-sight errors in intricate indoor settings, while Pedestrian Dead Reckoning (PDR) technology with inertial sensors is susceptible to cumulative drift errors over time. Consequently, this paper introduces the Unscented Kalman Filter (UKF) algorithm to integrate UWB technology with PDR technology. The improved PDR-derived pedestrian localization information is employed as the state vector for the UKF algorithm, and the positioning information obtained through enhanced UWB technology serves as the observation vector for the UKF algorithm. This combined approach effectively corrects pedestrian position information, ultimately yielding more accurate pedestrian locations. Research results indicate that the proposed algorithm achieves a root mean square error of 3.64 centimeters. In comparison to a standalone UWB algorithm, this method demonstrates superior positioning accuracy in complex environments.