After settling in San Francisco in the early 1860s, Hearst became a politician, first representing San Francisco in the state legislature for one term. He also maintained mining interests through his company. Hearst was appointed as a United States Senator in 1886 to fill a vacancy and was elected as a Democrat later that year on his own account. He served in the Senate from 1887 to his death in 1891. His only child from his late marriage (at age 40) was his son William Randolph Hearst, who became internationally known as a newspaperman and publisher, and was a primary inspiration for Orson Welles' 1941 film "Citizen Kane".