Quick recap: reported speech
Direct speech: when someone speaks directly to you
Indirect/reported speech: when you report to a third person what was said to you
Direct: William said, "I am heir to the throne."
Indirect: William said (that) he was heir to the throne.