On February 6, 1847, Juan married the Archduchess Maria Beatrix of Austria-Este, daughter of Duke Francis IV of Modena and Princess Maria Beatrice of Savoy.
Juan and Beatrix lived first in Modena, but had to leave during the revolution of 1848.