Prince Harry and Meghan had been contacted more than a month ago about attending the coronation, prompting weeks of speculation about whether they would go.
The announcement means that Prince Harry will be part of the historic ceremony, joining other members of the Royal Family, public figures, world leaders and 450 representatives of charities and community groups.
As he is no longer a "working royal", it remains to be seen what part Prince Harry will play in the ceremony. For the Queen's Platinum Jubilee, Prince Harry and Meghan were not allowed to take part in the traditional appearance on Buckingham Palace balcony.