In this paper, we study the joint optimal relay location and power allocation problem for single-relay-assisted ultra-wideband (UWB)-based wireless body area networks (WBANs). Specifically, to optimize spectral efficiency (SE) for single-relay cooperative communication in UWB-based WBANs, we seek the relay with the optimal location together with the corresponding optimal power allocation. With proposed relay-location-based network models, the SE maximization problems are mathematically formulated by considering three practical scenarios, namely, along-torso scenario, around-torso scenario, and in-body scenario. Taking into account realistic power considerations for each scenario, the optimal relay location and power allocation are jointly derived and analyzed. Numerical results show the necessity of utilization of relay node for the spectral and energy-efficient transmission in UWB-based WBANs and demonstrate the effectiveness of the proposed scheme in particular for the around-torso and in-body scenarios. With the joint optimal relay location and power allocation, the proposed scheme is able to prolong the network lifetime and extend the transmission range in WBANs significantly compared to direct transmission.