 Francis returned to his estates in Hungary in 1694 and was elected prince of Transylvania in 1704.Around the turn of the 18th century, French monarch Louis XIV sought Rákóczi's help in his attempt to reduce Austrian power and promised to aid Rákóczi in return for an attempt at Hungarian independence.However, Rakoczi was arrested in 1700 after an Austrian spy alerted the emperor.