The Tar Heels will host the Illini at Kenan Stadium on Sept. 19, 2015, and will play in Champaign on Sept. 10, 2016.
"Coach [Larry] Fedora and I have been in discussions for several months about our future nonconference football opponents," UNC athletic director Bubba Cunningham said in a statement. "We both felt Illinois would be an attractive matchup for both schools and would be a tremendous experience and opportunity for our student-athletes, staff and fans."
The programs have met just twice, with the Tar Heels winning 27-0 in Champaign in 1971 and 34-14 in Chapel Hill in 1987.
North Carolina has not faced a Big Ten program since a loss at home to Wisconsin in 2005.