The first head-to-head election debate between Boris Johnson and Jeremy Corbyn will take place on 19 November.
It will be shown on ITV and hosted by news presenter Julie Etchingham.
The channel said it also plans to hold a multi-party debate in the run-up to the 12 December poll.
On Thursday, Labour leader Mr Corbyn challenged the PM to a one-on-one debate, while Lib Dem leader Jo Swinson said she should take part in a three-headed encounter with the two leaders.
After the announcement, Mr Corbyn welcomed the development on Twitter, claiming Mr Johnson had “accepted our challenge” for the “once in a generation election”.
After the main event, ITV said it would hold a live interview-based programme to allow other parties to comment on the debate.
The Conservatives, Labour, Liberal Democrats, Brexit Party, Scottish National Party and the Green Party will all be represented.
In a later multi-party debate, the Conservatives, Labour, Lib Dems, SNP, Brexit Party and Plaid Cymru will take part, represented by either their leader or “another senior figure”.
ITV said Northern Ireland and Wales would have their own debates specifically for the nations, while STV – which broadcasts to parts of Scotland – plans to hold its own debate with Scottish candidates.
Political leaders’ TV debates have featured in the last three general elections in 2010, 2015 and 2017.
But in 2017, the then-Conservative Party leader and PM Theresa May declined to take part, saying she preferred “to get out and about and meet voters”.
The then-Home Secretary Amber Rudd stood in for her during a BBC debate.