In France, you can legally marry a dead person. Posthumous Matrimony requires the approval of the President and Justice Minister, however.