The recurrence relations for classical orthogonal polynomials are derived in a new way by using two fruitful tools. One tool is a specially chosen commutator algebra for certain simple operators. The other tool is a confluence process. No other formula except a differential equation for polynomials is used. Jacobi polynomials and Laguerre polynomials are taken as examples.