In this paper, we present a generalized Gronwall inequality with singularity. Using this inequality, we investigate the existence, uniqueness, and Ulam‐Hyers‐Rassias stability for solutions of a class of generalized nonlinear fractional differential equations of order α (1 < α < 2). In this way, we improve and generalize several earlier outcomes.