Many remained puzzled over why Hitler married the day before he shot himself. Some think Hitler did so for either romantic reasons or to satisfy conventional morality. Heinz Linge, Hitler’s valet, didn’t agree.
…Hitler’s decision to marry Eva Braun ‘properly’ resulted from quite different motives. It is certain that the ceremony and its consequences meant nothing at all to him. He merely wanted to fulfill Eva’s wish that after coming to him in Berlin, she should die at his side as his lawful wife.
(Source: With Hitler to the End: The Memoir of Hitler’s Valet by Heinz Linge)