We formulate necessary and sufficient condition for Abelian integral to satisfy ordinary differential equation with algebraic coefficients. We apply this theory to some Darboux integrable cases.