Franz Joseph was married to his cousin Elisabeth of Bavaria, who was regarded as the most beautiful princess in Europe. They had four children: Sophie, Gisela, Rudolf, and Marie Valerie. Rudolf, the heir apparent, shot himself in a suicide love pact in 1889. Elisabeth was mortally stabbed by an Italian anarchist in Geneva in 1898.