In September 2014, Rayner was selected as the Labour Party's candidate for Ashton-under-Lyne, on the retirement of David Heyes. She won the seat at the 2015 general election, increasing the Labour majority and its share of the vote.[10][11] She delivered her maiden speech on 3 June 2015.