On 21 August 2010, Main appeared as a trialist goalkeeper for Ayr United and kept a clean sheet in their 1–0 victory over Dumbarton. At 42 years 259 days old, he became the oldest player ever to play for Ayr United. However, after making two further league appearances against Peterhead and Alloa Athletic, a permanent contract did not come to fruition. Main joined Rangers in January 2011 as temporary cover for goalkeeping coach Jim Stewart, who was undergoing knee surgery. Main stayed in this position until 3 March. He officially announced his retirement as a player on 26 March 2011.