We studied the simultaneous doping with zinc and selenium in AlGaInP by metalorganic vapor phase epitaxy. We measured the dependence of zinc and selenium incorporation on substrate orientation from (100) to (311)A faces, showing that the simultaneously doped layer becomes n-type on the (100) face and p-type on the (311)A face. The simultaneously doped layer was examined by photoluminescence, capacitance-voltage, Hall, and secondary ion mass spectrometry analysis. We showed that the simultaneously doped layers have good electrical conduction characteristics and optical qualities for cladding layers in optical devices. We also demonstrated a lateral p-n junction on a patterned substrate.