The classical moment problem is formulated for commutative hypergroups and the uniqueness is proved for polynomial hypergroups in a single variable and for Sturm-Liouville hypergroups.