 After being chosen as king in the 1576 Polish–Lithuanian royal election, Báthory also began using the title of the prince of Transylvania.Báthory's position was at first extremely difficult, as there was still some opposition to his election.Emperor Maximilian, insisting on his earlier election, fostered internal opposition and prepared to enforce his claim by military action.