Republican Thad Cochran, the genteel Southerner who has represented Mississippi in the U.S. Senate for nearly half of his life, battled for his political future against tea party upstart Chris McDaniel in a race that was too close to call late Tuesday.

The conservative state emerged as the most competitive - and brutal - of the primary season, which has largely played out on the Republican side of the aisle as hard-right candidates try to topple establishment favorites. If neither Mississippi candidate clears 50% - possible because a third candidate is in the race - Cochran and McDaniel would be in a runoff in three weeks.

“Go out and vote,” implored the McDaniel team on Twitter as the polls were about to close.

“One hour left,” tweeted Cochran's campaign.

Republicans are favored to keep the seat in November against Democrat Travis Childers, who easily won his party nomination Tuesday. The GOP needs a net gain of six seats elsewhere to take Senate control from Democrats.

Cochran, who ran his campaign simply as “Thad,” enjoyed goodwill from the GOP establishment, which wrapped the senator in a cloak of endorsements and warned voters against dumping a senator with so much seniority in Washington.

But the Republican Party has changed dramatically since white-haired 76-year-old Cochran first won office, and he faced enormous odds against the charismatic McDaniel, a conservative who gave small-government groups their best shot at a win after several high-profile primary season losses.

A state senator who models himself after firebrand Sen. Ted Cruz (R-Texas), McDaniel portrayed Cochran’s record of delivering much-needed federal dollars to the impoverished state as a liability in this era of tea party conservatism.

The race became as hardball as it was odd, particularly after supporters of McDaniel were arrested in connection with a blogger who allegedly photographed the senator's ailing wife in her nursing home.

The episode knocked McDaniel from what had been a growing lead over Cochran and appeared to sour voters on the unusually rough race, strategists said. The Cochran team used the incident in a campaign ad, giving the issue even longer legs.

Neither candidate ran the most sophisticated campaign, providing an opening for the outside groups that poured money into the state as a proxy battle for the future of the GOP. In all, almost $12 million was spent by the candidates and outside groups.

The free-market-aligned Club for Growth argued against Cochran's pork-barrel spending, and a group headed by allies of former GOP Gov. Haley Barbour portrayed McDaniel as a politician who could not be trusted.

Both campaigns often sounded out of touch with the times. Early on, Cochran set off alarms among Republicans when he told an interviewer he didn't know much about the tea party. McDaniel had to backtrack after initially wavering on whether he would have supported federal aid after Hurricane Katrina - a deal-breaker for some coastal voters where storm damage remains evident.

“It was the perfect environment for Chris McDaniel to run a tea-party-style campaign,” said Brian Perry, a GOP strategist at the Mississippi Conservatives PAC that backed Cochran. “People are angry with Washington and they want things to change.”

On the Democratic side, Childers, a former lawmaker in the House, sailed to the party nomination. Some strategists believe his conservative streak could give Democrats an opportunity to make the fall race competitive.

In Iowa, voters were choosing a Republican Senate nominee for the seat made open by the retirement of longtime Democratic Sen. Tom Harkin.

Republican Joni Ernst, a state senator who catapulted ahead of a wide field with a feisty television ad about her background castrating hogs, will face Rep. Bruce Braley in November.

Racial politics have roared to life in a congressional race in Northern California, after mailers were sent to district residents accusing a candidate of Indian ancestry — prominently pictured on the mailers — of planning to “outsource our jobs.”

Gov. Mike Pence said that he wants lawmakers to “work around the clock,” to find a fix for a state law that critics say allows for discrimination against gays and lesbians by those with opposing religious beliefs. But finding a legislative fix in an atmosphere of economic boycotts...

Mary Bonauto, the Boston lawyer who won the first gay marriage rulings in Massachusetts and Vermont, will lead the argument before the Supreme Court in favor of a constitutional right to same-sex marriage nationwide.

The controversy over Indiana’s religious freedom law has opened a new — and predictable — divide in the 2016 presidential race, as Republicans rise to its defense and Democrats condemn the legislation as discriminatory against gays and lesbians.

When Indiana approved a law designed to allow residents and business owners to use their religious beliefs as reason to deny services to some people, the conservative state braced for some fallout. But the response was quicker and harder after a campaign from critics who argued the law...