Direct numerical simulations are performed to investigate the effect of the yaw angle (α) on the drag-reduction performance by riblets in a turbulent channel flow. The yaw angles of α=0° and 90° correspond to the riblets parallel and perpendicular to the free-stream direction, respectively. It is well known that maximum drag reduction occurs at α=0°, and the drag-reduction performance by riblets is degraded with increasing α. We obtain the critical yaw angle below which drag reduction can be achieved and investigate the corresponding mechanism. From a parametric study, drag reductions are achieved for α<20°. As α increases, the form drag increases more rapidly than the skin-friction drag decreases, resulting in the increase in the total drag. At drag reducing and increasing yaw angles, the mean velocity profiles in wall units shift upward and downward, respectively, and the latter profile suggests that the drag-increasing riblet is similar to a rough surface. With increasing α, the wall-normal and spanwise velocity fluctuations and Reynolds shear stress increase, and stronger near-wall vortices are generated. By applying a scaling analysis to the momentum equation in the riblet-perpendicular direction and the FIK (Fukagata–Iwamoto–Kasagi) identity [Fukagata et al., “Contribution of Reynolds stress distribution to the skin friction in wall-bounded flows,” Phys. Fluids 14, L73–L76 (2002); Peet and Sagaut, “Theoretical prediction of turbulent skin friction on geometrically complex surfaces,” Phys. Fluids 21, 105105 (2009); Bannier et al., “Riblet flow model based on an extended FIK identity,” Flow Turbul. Combust. 95, 351–376 (2015)] to the riblet-parallel direction, the total drag is expressed as a linear function of sin2α.