Martin O'Neill has agreed a new contract with the Republic of Ireland and will remain manager until after their Euro 2020 campaign.
O'Neill started the job in 2013 and led Ireland to Euro 2016, where they were defeated 2-1 by eventual finalists France in the first knockout round.
The 65-year-old had previously made no secret of his desire to renew and said earlier on Thursday in a media conference that both sides were eager to find an agreement.
O'Neill's renewal secures his immediate future despite Ireland sitting in a potentially precarious position in World Cup qualifying, positioned in third place in Group D behind Serbia and Wales with two matches to go.
Defeat at home to rock-bottom Moldova on Friday could end their qualification hopes should Wales beat Georgia earlier on the same day, but clearly O'Neill and Ireland are looking beyond next year's World Cup.
BREAKING: Martin O'Neill has agreed a contract extension and will continue as the Republic of Ireland manager for the EURO 2020 campaign! pic.twitter.com/UAjiKoMGVh— FAIreland (@FAIreland) October 5, 2017
Speaking to the national team's official website, O'Neill said: "I spoke to John [Delaney, chief executive] very recently and he said on behalf of the board that he wanted to extend my contract for the next couple of years.
"Obviously with Euro 2020 coming up, I've agreed to do so. I've enjoyed it [as manager] immensely.
"I wasn't sure If I would get used to international football or not, but qualifying for the Euros [Euro 2016] made it all worthwhile and we're still in this competition [World Cup qualifying] also.
"The future, now with some younger players coming through and taking over from the old guard who will retire naturally through old age as much as anything else, I think makes it an exciting time for us."
There have been incredible moments over the last few years! Time to create some more starting this week..
|Leicester City 1 West Brom 1: Mahrez cancels out Chadli magic|
|Hamsik not worried by Maradona record ahead of Man City clash|
|Man City better than Real Madrid? Sarri daunted by Napoli´s Etihad assignment|
|Ashley puts Newcastle United put up for sale|
|Lovren accuses ´nervous´ Lukaku of deliberate kick during Manchester United draw|
|One small step for Ox... Klopp praise for under-fire midfielder|
|Klopp denies Liverpool have lost confidence|
|Manchester ready for goal rush as Spurs visit fortress Bernabeu - Champions League in Opta numbers|
|Tottenham one of Europe´s best, claims Riedle|
|Watch: Barcelona mark Messi debut with footage of La Masia magic|
|Ronaldo has to win Ballon d´Or, says Isco|
|Guardiola not falling for De Laurentiis´ Napoli script change|
|Guardiola´s ´genius´ inspiring Sterling at Manchester City|
|He is a complete forward – Zidane an admirer of Kane|
|Bale could miss both Tottenham games, concedes Zidane|
|Guardiola takes pressure off De Bruyne amid Messi comparisons|
|Napoli should rest stars against Manchester City - De Laurentiis|
|Switzerland, Italy, Croatia & Denmark seeded for World Cup play-offs|
|Kane takes Real Madrid interest ´very naturally´, says Pochettino|
|Chelsea struggling to fight on several fronts, Conte concedes|
|Jiangsu Suning confident Capello not Italy-bound|
|Pochettino: Madrid are not the Ronaldo team|
|Boateng considered Bayern exit|
|Nonsense! Critics won´t force Postecoglou out says Socceroos great Moore|
|MLS Review: Sounders, Timbers book play-off spots|
|Lukaku dismisses suggestions he is a flat-track bully|
|Milan will go along with Montella - Fassone backs boss after derby loss|
|Valencia win incredible nine-goal thriller at Betis|
|Spalletti hails Inter´s derby hero Icardi as complete striker|
|D´Ambrosio was clever - Milan boss Montella angry at Inter´s winning penalty|
|Mandanda breaks Marseille appearance record|
|Inter hero Icardi ´holding on tight´ to derby hat-trick ball|
|Pochettino watches you everywhere - Fonte|
|Attack proving best form of defence for Manchester City|
|If they think that, they will be stupid - Guardiola rules out City complacency pre-Napoli|
|Inter 3 AC Milan 2: Brilliant Icardi treble breaks Rossoneri hearts|
|Indonesian goalkeeper Choirul Huda dies after colliding with team-mate|
|Pogba steps up recovery from hamstring injury|
|I feel pity for the fans – Benitez|
|Jesus learning from Aguero and living for goals at Manchester City|
|De Vrij eyes Lazio extension despite Liverpool links|
|Southampton 2 Newcastle United 2: Gabbiadini brace denies Magpies|
|Treble season - Barcelona star Messi and Antonella Roccuzzo to have third child|
|Rooney makes Brighton his 36th Premier League victims|
|My whole football life is pressure - Koeman unconcerned by scrutiny|
|Inter striker Icardi targets 100 goals for club|
|Brighton and Hove Albion 1 Everton 1: Late Rooney penalty fails to paper over visitors´ woeful show|
|Derby County 2 Nottingham Forest 0: Vydra´s rapid start sets Rams on their way|
|Spurs boss Pochettino harbours England ambitions|
|Milan´s Bonucci grateful to Inter for early grounding|
|De Bruyne one of the best in the world, says Silva|
|I won´t finish my career here – Mourinho looking beyond Manchester United|
|A-League Review: Bobo double sinks Wellington Phoenix, Taggart rescues Perth Glory point|
|Allardyce rules out taking ´very tempting´ Scotland job|
|Pochettino did not like me at first, reveals Alli|
|Koke pleased with Atletico display against Barcelona, Messi|
|Vazquez: Isco´s football is from the street|
|Ronaldo always delivers when Madrid need him to – Marcelo|
|Messi ´tired´ after recent heroics, says Valverde|
|Mertesacker laments Arsenal collapse|
|We achieved something remarkable - Inzaghi hails Lazio´s ´historic´ win at Juve|
|Simeone lauds Barcelona´s ´extraordinary´ Messi|