Answer
Gianforte filled the seat vacated by Ryan Zinke, who had been appointed United States Secretary of the Interior by President Donald Trump. Zinke had represented Montana's at-large congressional district since 2015, and his resignation created a vacancy that was filled by Gianforte in a special election held in May 2017.