As a promising surface-enhanced Raman scattering (SERS) substrate, two-dimensional (2D) nanomaterials ensure the uniformity and reproducibility of the SERS response. However, their extremely flat surfaces are not beneficial for high-capacity binding of analytes and significant enhancement of Raman signals. In this contribution, monolayer Mo0.27Re0.73S2 alloys with distorted lattice and modulated optoelectronic structure are facilely fabricated by space-confined chemical vapor deposition (CVD), exhibiting a significantly enhanced SERS performance with an enhancement factor of 2.0 × 1011. As demonstrated, the continuous increment of Re ratio results in a phase transition from 2H to 1T’ for homogeneous Mo1−xRexS2 monolayers. As a result, the 1T’-phase Mo0.27Re0.73S2 alloys achieve a sensitive detection of down to 10−15 M for Rhodamine 6G while the value on MoS2 or ReS2 is only 10−9 M. Additionally, the alloy-based SERS substrate demonstrates excellent SERS detection reproducibility, long-term stability, and universality. Referring to the space-confined CVD, a dynamics-controlled process is further employed for the in-situ fabrication of 1T’@2H Mo1−xRexS2 heterostructures, providing a new approach and insight for facilely building varied phases-based lateral heterostructures by the control of composition ratio. Overall, this work demonstrates the enormous potential of alloy engineering in improving the SERS performance of TMDs and the convenient fabrication of out-of-phase TMD alloys.