A Democrat from Foxborough and a Republican from Attleboro have moved on to the general election in the race to fill the seat vacated by Jim Timilty.

Democrat Paul Feeney of Foxborough and Republican Jacob Ventura of Attleboro were the victors in Tuesday night's special primary for the Bristol and Norfolk state Senate seat. The two will be on the ballot for the general election on Oct. 17.

"Paul Feeney has been a strong progressive champion for the working families and residents of Massachusetts throughout his career and will continue to stand up for the issues most important in the Bristol and Norfolk senate district, including fighting for more funding for public education and tackling the opioid crisis," Massachusetts Democratic Party Chair Gus Bickford said in a release.

Feeney, a former member of the Foxborough Board of Selectmen, most recently served as the Massachusetts Director for the Bernie Sanders for President Campaign. Ventura has served as a town meeting member and finance committee member. He has also spent time as a legislative aid to state Rep. Steven Howitt, R - Seekonk.