Wigan Athletic named Roberto Martinez as their new manager on Monday after the Premier League club agreed compensation terms with his former club Swansea City. Wigan said the 35-year-old Spaniard had agreed a three-year deal to replace Steve Bruce who left the club to take over at Sunderland at the start of the month. Martinez, one of the most highly-regarded young managers in the English game after guiding Swansea to the Championship in his first full season, should have been in place last week before a hitch involving his Swansea backroom staff who will join him at Wigan. Martinez made his name in English football as a player when he joined Wigan in 1995 along with compatriots Jesus Seba and Isidro Diaz. He made 226 appearances in six years. "I had a great time here as a player and the club is close to my heart," Martinez told Wigan's website. "I am looking forward to getting stuck in and taking on teams in the best league in the world." Martinez took Swansea to within touching distance of the promotion playoffs last season, earning many plaudits for their eye-catching brand of football. Swansea chairman Huw Jenkins said a compensation agreement had been reached for Martinez, assistant manager Graeme Jones, chief scout Kevin Reeves and goalkeeping coach Inaki Bergara. "I don't think either club are totally happy with the compensation figure agreed for the backroom staff," he told his club's website. "But I think both clubs realised that this matter needed to be concluded so that we can all move on."