James Dayton has agreed to join Oldham Athletic on a two-year contract after rejecting a three-year deal at Kilmarnock.
The 24-year-old midfielder, who began his career as a trainee at Crystal Palace, played alongside Oldham boss Lee Johnson at Rugby Park until earlier this year.
Dayton, who has also had loan spells with Yeovil and Crawley, told the League One club's website: "Having worked with Lee, I know what he is about. He is ambitious and wants to take the club forward.
"He wants to take Oldham up the league and I was impressed by his vision for the club."
Johnson added: "He has done very well in Scotland and Kilmarnock wanted him to stay and I am delighted to have signed a player of his pedigree and talent. I am sure he will do very well for us."
Dayton moved to Ayrshire in 2010 after leaving Palace and the winger made over 70 appearances for the 2012 Scottish league Cup winners.