Why was Louis Xvi Executed?

King Louis XVI was the only king to ever be executed (he was beheaded). it was said he was a good man. That tried to make changes, but to no avail. He was accused of many charges that he didn’t commit, but was ordered to be executed. At his final hour he didn’t hold ill will toward know one.