Perovskite yttrium tantalum oxynitride is theoretically proposed as a promising semiconductor for solar water splitting because of the predicted bandgap and energy positions of band edges. In experiment, however, we show here that depending on processing parameters, yttrium tantalum oxynitrides exist in multiphases, including the desired perovskite YTaON2, defect fluorite YTa(O,N,o)4, and N-doped YTaO4. These multiphases have bandgaps ranging between 2.13 and 2.31 eV, all responsive to visible light. The N-doped YTaO4, perovskite main phase, and fluorite main phase derived from crystalline fergusonite oxide precursors exhibit interesting photoelectrochemical performances for water oxidation, while the defect fluorite derived from low crystallized scheelite-type oxide precursors show negligible activity. Preliminarily measurements show that loading IrOx cocatalyst on N-doped YTaO4 significantly improves its photoelectrochemical performance encouraging further studies to optimize this new material for solar fuel production.