Two-dimensional organic-inorganic hybrid halide perovskites possess diverse structural polymorphs with versatile physical properties, which can be controlled by order-disorder transition of the spacer cation, making them attractive for constructing semiconductor homojunctions. Here, we demonstrate a space-cation-dopant-induced phase stabilization approach to creating a lateral homojunction composed of ordered and disordered phases within a two-dimensional perovskite. By doping a small quantity of pentylammonium into (butylammonium)