We obtain a complete set of explicit necessary and sufficient conditions for the isochronicity of a Hamiltonian system with one degree of freedom. The conditions are presented in terms of the Taylor coefficients of the Hamiltonian function and have the form of an infinite collection of polynomial equations.