Flagler's second wife, the former Ida Alice Shourds, was declared insane by Flagler's friend Dr. Anderson in 1896 and was institutionalized on and off starting that year. At the same time, he began to have an affair with Mary Lily Kenan; by 1899, newspapers began to openly question whether the two were having an affair. That year he reportedly gave her more than $1 million in jewelry. In 1901, Flagler bribed the Florida Legislature and Governor to pass a law that made incurable insanity grounds for divorce, opening the way for Flagler to remarry. Flagler was the only person to be divorced under the law before it was repealed in 1905. A spouse's mental incapacity was later restored by the legislature as a grounds for dissolution of marriage, and remains the law of Florida today.