We investigate the existence of nonnegative solutions for a Riemann-Liouville fractional differential equation with integral terms, subject to boundary conditions which contain fractional derivatives and Riemann-Stieltjes integrals. In the proof of the main results, we use the Banach contraction mapping principle and the Krasnosel’skii fixed point theorem for the sum of two operators.