Then: It is an adverb, indicates something happened after something else, generally used as a reference to time. It provides a chronology of events.
Than: It is an conjunction. Similar to 'and' and 'but', which are used to Compare two objects or phrases in a sentence.