Hayes was elected to the Ontario legislature in the
1985 provincial election, defeating
Liberal candidate Jack Morris by about 1,300 votes in
Essex North. He served as the NDP critic for Transportation and Communications, Tourism and Recreation, and Agriculture in the parliament that followed. The Liberals won a landslide majority in the
1987 provincial election, and Hayes his seat lost to Liberal
MPP Jim McGuigan, by 1,063 votes in the redistributed riding of
Essex—Kent. He ran against McGuigan again in the
1990 election, this time defeating him by 5,890 votes amid a provincial victory for the NDP under
Bob Rae. He served as
Parliamentary Assistant to the
Minister of Agriculture and Food from 1990 to 1993, and to the
Minister of Municipal Affairs from 1993 to 1995. In 1994, Hayes was one of twelve NDP members to vote against
Bill 167, a bill extending financial benefits to same-sex partners. Premier
Bob Rae allowed a free vote on the bill which allowed members of his party to vote with their conscience. By the 2003 campaign, he had changed his mind on this issue. The NDP were defeated in the
1995 provincial election, and Hayes finished third, 2,293 votes behind the winning candidate, Liberal
Pat Hoy. He sought a return to the legislature in the
2003 provincial election, but, although he was generally seen as a strong candidate, he lost to Liberal incumbent
Bruce Crozier by about 8,000 votes in the riding of
Essex. ==Municipal politics==