Through his mother , Pedro was a nephew of Napoleon Bonaparte and first cousin of Emperors Napoleon II of France , Franz Joseph I of Austria-Hungary and Don Maximiliano I of Mexico .
Pedro II was nephew of Miguel I ( father 's part ) , Napoleon Bonaparte ( mother 's part ) and cousin of Emperors Napoleon II , Franz Joseph I and Maximilian I of Mexico .