Than is a word used only in comparisons (greater than, less than, etc.).
Then is used to place an action in time or a thought into a sequence. It can mean “at that exact time, the time immediately following, the next in the sequence,” or in some cases, “consequently.”
Example: At first we debated the point; then we decided it was better to go than to stay.
See different from, different than.