Didactic

Intended to instruct or educate, often with an underlying moral or philosophical message.