Since the discovery of Jupiter-sized planets in extremely close orbits around Sun-like stars, several mechanisms have been proposed to produce these “hot Jupiters”. Here we address their pile-up at 0.05 AU observed in stellar radial velocity surveys, their long-term orbital stability in the presence of stellar tides, and their occurrence rate of 1.2 ± 0.38% in one framework. We calculate the combined torques on the planet from the stellar dynamical tide and from the protoplanetary disk in the type-II migration regime. The disk is modeled as a 2D nonisothermal viscous disk parameterized to reproduce the minimum-mass solar nebula. We simulate an inner disk cavity at various radial positions near the star and simulate stellar rotation periods ...