The Polyakov relation, which in the sphere topology gives the changes of the Liouville action under the variation of the position of the sources, in the case of higher genus is related also to the dependence of the action on the moduli of the surface. We write and prove such a relation for genus 1 and for all hyperelliptic surfaces.