Companies and brands often attempt to avoid taking strong public positions out of fear of alienating customers, but Nike is running straight into the political fray.

Just days before a new NFL season gets underway, Nike is throwing its weight behind one of the most polarizing figures in football, and America: former San Francisco 49ers quarterback Colin Kaepernick.

Kaepernick will be one of the faces of Nike's 30th anniversary commemoration of its iconic "Just Do It" slogan. The campaign will also feature athletes such as Serena Williams, NFL wide receiver Odell Beckham Jr., and Shaquem Griffin, a rookie linebacker for the Seattle Seahawks whose left hand was amputated when he was a child.

Kaepernick tweeted out a photo from the campaign on Monday. Over a black-and-white picture of his face, a caption reads, "Believe in something. Even if it means sacrificing everything."

In backing Kaepernick, whom the company has sponsored since 2011, Nike (NKE) is making a high-stakes gamble that its customers support his protest, or at least that enough of them do. The company is also betting its brand can withstand criticism from conservative corners, including the White House.

Kaepernick has not played in the NFL since the 2016 season. That year, he began kneeling during the national anthem to raise awareness about police brutality against African-Americans and other racial injustices. Dozens of other players also began joining Kaepernick, and he has grown into a symbol of dividing lines over race in America.

Believe in something, even if it means sacrificing everything. #JustDoIt pic.twitter.com/SRWkMIDdaO — Colin Kaepernick (@Kaepernick7) September 3, 2018

In 2017, he filed a grievance against the NFL, alleging the league conspired to keep him out because of his protests. An arbiter last week denied the NFL's request to throw out the grievance, allowing the case to proceed to a trial.

The protests have divided the league, often pitting a conservative white owner base against the NFL's mostly African-American players.

The owners voted in May to approve rules that would have required players to stand on the sideline during the anthem or or remain in the locker room. Teams would be fined if players did not stand during the anthem, and the rules allowed individual teams to set their own policies.

Those rules are on hold while the league and the players' association negotiate.

Nike's public support of Kaepernick also risks drawing the anger of President Donald Trump.

Trump and his allies have repeatedly seized on the issue. At a rally in Alabama last year, Trump said team owners should "get that son of a bitch off the field" if a player knelt in protest of injustice during the anthem. Vice President Mike Pence walked out of an Indianapolis Colts game after some players knelt.

"This is a very winning, strong issue for me," Trump told Dallas Cowboys owner Jerry Jones last year, according to a sworn deposition Jones gave in connection with Kaepernick's lawsuit.

Nike declined to comment on whether it expected Trump to criticize the company or how it would respond if he did.

In some ways, however, Nike is protected from backlash.

The company has built itself around its star athletes, many of whom are African- American.

Top Nike athletes, including LeBron James and Serena Williams, have publicly backed Kaepernick and his right to protest.

On Saturday, Williams praised Kaepernick and former 49ers' defensive back Eric Reid, who joined Kaepernick as one of the first to protest through kneeling and who is now also without an NFL team. "I think every athlete, every human, and definitely every African-American should be completely grateful and honored how Colin and Eric are doing so much more for the greater good," she said.

Nike's relationship with the NFL is also at play here. The brand is the official uniform sponsor of the NFL.

"Nike has a long-standing relationship with the NFL and works extensively with the league on all campaigns that use current NFL players. Colin is not currently employed by an NFL team and has no contractual obligations to the NFL," Nike spokesperson Sandra Carreon-John said.

Jocelyn Moore, the NFL's executive vice president of communications and public affairs, said in a statement that the league "believes in dialogue, understanding and unity."

"We embrace the role and responsibility of everyone involved with this game to promote meaningful, positive change in our communities," she said. "The social justice issues that Colin and other professional athletes have raised deserve our attention and action."

Nike's announcement set off fierce debates on social media. The company was trending worldwide late Monday on Twitter (TWTR), which counted more than 1.2 million tweets about the sports brand.

Its critics included country musician John Rich, who posted a photo showing that his soundman had cut the Nike swoosh off his socks in protest.

Rich warned Nike to "get ready," suggesting millions of other customers would follow suit.

Our Soundman just cut the Nike swoosh off his socks. Former marine. Get ready @Nike multiply that by the millions. pic.twitter.com/h8kj6RXe7j — John Rich (@johnrich) September 3, 2018

The company also drew fire from Fox Sports Radio host Clay Travis, who called the Kaepernick campaign "pathetic," and former Arkansas Gov. Mike Huckabee, who tweeted, "I guess @Nike will now focus on making knee pads for NFL."

But many users voiced support for the brand's decision and mocked people who claimed to be destroying their Nike products in protest, suggesting they should donate them to charity instead.

Williams said she was "especially proud to be a part of the Nike family today."

Especially proud to be a part of the Nike family today. #justdoit pic.twitter.com/GAZtkAIwbk — Serena Williams (@serenawilliams) September 4, 2018

Outspoken sports journalist Jemele Hill argued that people shouldn't be surprised by Nike's decision based on its history.

"Nike became Nike because it was built on the idea of rebellion," she wrote. "This is the same company that dealt w/ the NBA banning Air Jordans. They made [Michael] Jordan the face of the company at a time when black men were considered to be a huge risk as pitch men. They aren't new to this."

- Jethro Mullen contributed to this report