A publishing agreement grants a publisher the exclusive right to publish your book in exchange for an advance and royalties. The Society of Authors recommends having any publishing agreement checked before signing. Rights reversion clauses are increasingly important in the digital age.
Legal reference: Copyright, Designs and Patents Act 1988; Society of Authors minimum terms