ELLSWORTH, Kan. — Former Kansas Agriculture Secretary Joshua Svaty says he’s running for the Democratic nomination for governor in 2018.

Svaty announced his candidacy Tuesday in his central Kansas hometown of Ellsworth.

The 37-year-old Svaty was elected to the Kansas House in 2002 and served there until Democratic Gov. Mark Parkinson appointed him state agriculture secretary in 2009.

He later served as a federal Environmental Protection Agency administrator and operates a family farm.

His announcement sets up the first contested Democratic primary for governor since 1998. Former Wichita Mayor Carl Brewer also has declared his candidacy.

Republican Gov. Sam Brownback is term-limited.

Wichita businessman Wink Hartman is seeking the GOP nomination and other potential Republican candidates include Lt. Gov. Jeff Colyer, Secretary of State Kris Kobach and Kansas Leadership Center CEO Ed O’Malley.