English law identified anal sex as an offence punishable by hanging as a result of the Buggery Act 1533, which was pioneered by Henry VIII. The Act was the country's first civil sodomy law, such offences having previously been dealt with by the ecclesiastical courts. While it was repealed in 1553 on the accession of Mary I, it was re-enacted in 1563 under Elizabeth I. James Pratt and John Smith were the last two to be executed for sodomy in 1835.