Agriculture Commissioner Todd Staples is resigning his post to become president of the Texas Oil and Gas Association. He is expected to leave office sometime in the next two months.

Staples term was already set to expire in January. He didn’t seek reelection, deciding instead to run for lieutenant governor. He finished third in the four-way Republican primary.

Staples had previously served in the Texas House and Senate, before becoming agriculture commissioner. Republican Sid Miller and Democrat Jim Hogan are running to replace him in November.