Sean Rayford/Getty Images North America/Getty Images
Now playing
02:08
Trump critic Mark Sanford loses GOP primary
senator bill nelson 11132018
CNN
senator bill nelson 11132018
Now playing
02:03
Nelson: Scott should recuse himself
Rep. Marsha Blackburn, R-Tenn., speaks to supporters after she was declared the winner over former Gov. Phil Bredesen in their race for the U.S. Senate Tuesday, Nov. 6, 2018, in Franklin, Tenn. (AP Photo/Mark Humphrey)
Mark Humphrey/AP
Rep. Marsha Blackburn, R-Tenn., speaks to supporters after she was declared the winner over former Gov. Phil Bredesen in their race for the U.S. Senate Tuesday, Nov. 6, 2018, in Franklin, Tenn. (AP Photo/Mark Humphrey)
Now playing
01:26
Meet the Republicans who held onto the Senate (2018)
Democratic congressional candidate Ilhan Omar is greeted by her husband's mother after appearing at her midterm election night party in Minneapolis, Minnesota, U.S. November 6, 2018. REUTERS/Eric Miller
Eric Miller/Reuters
Democratic congressional candidate Ilhan Omar is greeted by her husband's mother after appearing at her midterm election night party in Minneapolis, Minnesota, U.S. November 6, 2018. REUTERS/Eric Miller
Now playing
01:33
Minorities, LGBT make history in 2018 midterms
WJLA
Now playing
02:01
Hear from the Democrats who took back the House
CNN
Now playing
01:50
Abrams vows to remain in gubernatorial race
Spectrum News NY1
Now playing
02:05
Ocasio-Cortez: This is a movement for justice
KXAN
Now playing
02:07
O'Rourke congratulates Cruz on his victory
CNN
Now playing
01:57
Tapper: This is not a blue wave
CNN
Now playing
02:11
Van Jones: It's a rainbow wave
LAS VEGAS, NV - OCTOBER 20:  U.S. Rep. and U.S. Senate candidate Jacky Rosen (D-NV) speaks during a rally at the Culinary Workers Union Hall Local 226 featuring former U.S. Vice President Joe Biden on October 20, 2018 in Las Vegas, Nevada. Early voting for the midterm elections in Nevada begins today. (Photo by Ethan Miller/Getty Images)
Ethan Miller/Getty Images
LAS VEGAS, NV - OCTOBER 20: U.S. Rep. and U.S. Senate candidate Jacky Rosen (D-NV) speaks during a rally at the Culinary Workers Union Hall Local 226 featuring former U.S. Vice President Joe Biden on October 20, 2018 in Las Vegas, Nevada. Early voting for the midterm elections in Nevada begins today. (Photo by Ethan Miller/Getty Images)
Now playing
01:45
CNN projects Jacky Rosen elected to US Senate
Additional Embargo:   Additional Source(s):    Date Shot: 11/6/2018   Shipping/Billing Info:     Description: Projects: None  Cost Center: Atlanta National Desk / 20100101   Created By: DHackett  On: 1541544461  --------------------------------------------------------------------------------
WSB;
Additional Embargo: Additional Source(s): Date Shot: 11/6/2018 Shipping/Billing Info: Description: Projects: None Cost Center: Atlanta National Desk / 20100101 Created By: DHackett On: 1541544461 --------------------------------------------------------------------------------
Now playing
00:59
Brian Kemp: Confident victory is near
2018 Elections Primary Clean path
CNN
2018 Elections Primary Clean path
Now playing
01:49
Pelosi: Tomorrow will be a new day in America
CNN
Now playing
01:36
The Democrats who might lead the House
CNN
Now playing
01:54
DeSantis thanks Trump in victory speech
KXAN
Now playing
01:44
Cruz: This election was a battle of ideas
Washington CNN —  

President Donald Trump took credit Wednesday for state Rep. Katie Arrington’s projected win over incumbent Rep. Mark Sanford in the South Carolina Republican primary.

“My political representatives didn’t want me to get involved in the Mark Sanford primary thinking that Sanford would easily win - but with a few hours left I felt that Katie was such a good candidate, and Sanford was so bad, I had to give it a shot,” Trump wrote on Twitter, while also congratulating Arrington.

Trump had endorsed Arrington in a tweet hours before the polls in South Carolina closed Tuesday and also attacked Sanford for being “very unhelpful to me in my campaign to MAGA.”

Sanford has publicly criticized Trump, at one point saying Trump had “fanned the flames of intolerance.” On Tuesday, he noted that it’s “fairly unusual” for a president to weigh in as Trump did and saying he’s “neither for nor against Trump,” but instead bases his decisions and comments on his political values.

CNN’s Eric Bradner contributed to this report.