He stood unsuccessfully as an SNP candidate for the House of Commons in the Glasgow Anniesland constituency in the 1997 General Election before standing in the Glasgow Maryhill constituency in both the 1999 and 2003 Scottish Parliamentary elections.
In the leadership contest that ensued at the SNP's 2003 Conference Swinney received 577 votes from those delegates voting to Wilson's 111 to remain leader.