Near the end of her husband's presidency, Clinton became the first first lady to seek political office, when she ran for United States Senate. During the campaign, her daughter Chelsea took over much of the first lady's role. Victorious, Clinton served as junior senator from New York from 2001 to 2009, when she resigned to become President Obama's secretary of state. Later, she was the Democratic Party nominee for president in the 2016 election, but lost to Donald Trump.