Michael O'Neill has signed a contract extension to remain as Northern Ireland manager until 2024.
The 48-year-old recently turned down the chance to become Scotland boss following talks with the Scottish Football Association.
And he has now agreed improved terms with the Irish Football Association by signing a four-year extension to his existing deal, which was originally due to expire in 2020.
O'Neill has agreed a lucrative six-year package with the IFA, worth in the region of £700,000 per year.
O'Neill, who was appointed Northern Ireland boss in December 2011, spoke to the SFA about succeeding Gordon Strachan last month but elected not to take up their post.
He guided Northern Ireland to the last-16 at Euro 2016 - their first major tournament in 30 years - and then led his nation to a 2018 World Cup play-off where they were narrowly beaten by Switzerland over two legs in November.
O'Neill was in demand after the defeat to the Swiss and spoke to West Brom and Sunderland when their positions were available, with the SFA also swiftly identifying him as its preferred candidate.
However, while the SFA dithered over agreeing to pay his £500,000 compensation fee, the IFA acted swiftly and opened up new discussions about a deal that O'Neill has now penned.