Alastair Grant, Pool, Associated Press
Britain's Prince Charles smiles as he hands out certificates to Prince's Trust 'Mark your Mark participants during a visit to British retailer Marks and Spencer in London, Wednesday, May 13, 2015. The Prince’s Trust 'Make your Mark' scheme is aimed at youth unemployment, giving underprivileged and socially disadvantaged young people opportunities to work.

LONDON — The British government has released previously secret letters written by Prince Charles to public officials — letters that were the subject of a long legal battle.

The cache includes letters to former Prime Minister Tony Blair and other top officials on topics that include agriculture, the armed forces, beef farming and other matters.

As the future king, Charles is expected to remain neutral on political topics.

Charles also issued a statement Wednesday defending his having written to members of the British government.

The letters are being released after a legal battle between the government and the Guardian newspaper.