阿方索十二世
Ludwig Ferdinand's paternal uncles were King Maximilian II of Bavaria, King Otto I of Greece and Prince Regent Luitpold of Bavaria. His maternal uncle was King-Consort Francis of Spain (1822–1902) and maternally his first cousin was King Alfonso XII of Spain (1857–85), two years his senior. Ludwig Ferdinand was born in Madrid, but his younger siblings in Bavaria where they had returned.