Former Massachusetts Gov. Bill Weld is ending his primary challenge to President Donald Trump.

Weld said in a statement Wednesday that he was suspending his 2020 Republican presidential bid. It came hours after Trump secured the number of delegates needed to clinch the Republican presidential nomination at the summer convention.

Weld was a 2016 vice presidential candidate on the Libertarian ticket and served as Massachusetts governor in the 1990s.

His bid failed to gain traction as the Republican Party increasingly closed ranks around the president, with a number of states canceling their primaries and other nominating contests. Two other Republican candidates have already ended their bids: Joe Walsh, a former congressman from Illinois, and Mark Sanford, a former South Carolina governor and congressman.

Weld is the final major Republican challenger to Trump to leave the race.