He said that he liked sweets.
Here's how the changes work:
* Tense shift: The verb "like" changes from present tense ("like") to past tense ("liked") because the original statement is reported in the past.
* Pronoun change: The pronoun "I" becomes "he" to reflect the speaker's perspective.
* Conjunction: The conjunction "that" is added to introduce the reported clause.