maria anna was born in munich, the daughter of maximilian i joseph of bavaria and his second wife karoline of baden. she was the identical twin sister of princess sophie of bavaria, mother of emperor franz joseph i of austria and emperor maximilian i of mexico.