After losing the Intercontinental Championship to Owen Hart on the April 28, 1997 episode of Raw Is War and suffering a legitimate knee injury in a match against Mankind, Maivia returned in August 1997 and turned heel by joining Faarooq, D'Lo Brown and Kama in the stable called the Nation of Domination. During this time, he refused to acknowledge the Rocky Maivia name, instead referring to himself in the third person as The Rock, though he would still be billed as Rocky "The Rock" Maivia until 1998. As The Rock, he insulted the audience in his promos as well as WWF television interviewers, once calling Kevin Kelly an "ugly hermaphrodite".  At D-Generation X: In Your House, Stone Cold Steve Austin defeated The Rock in under six minutes to retain the Intercontinental Championship. The next night on Raw Is War, Austin was ordered by Mr. McMahon to defend the title in a rematch, but forfeited it to The Rock instead, handing him the title belt before hitting him with the Stone Cold Stunner. The Rock feuded with Austin and Ken Shamrock through the end of 1997 and beginning of 1998. On the March 30 episode of Raw is War, The Rock debuted a new Intercontinental Championship belt which was used to represent the title until October 2, 2011, when the previous design was reused. Later that night, The Rock would also overthrow Faarooq as leader of the Nation of Domination to spark a feud between the two and successfully defended the Intercontinental title against Faarooq at Over the Edge: In Your House on May 31, 1998.  The Rock and The Nation then feuded with Triple H and D-Generation X (DX), with the two stable leaders first meeting in the quarter-final of the 1998 King of the Ring tournament, which The Rock won. At King of the Ring, The Rock defeated Dan Severn in the semi-final match and lost to rival Ken Shamrock in the final. The Rock then resumed his feud with Triple H, as the two had a two out of three falls match at Fully Loaded: In Your House for the Intercontinental title, which The Rock retained in controversial fashion. This led to a ladder match at SummerSlam, in which Triple H won the title. At Breakdown: In Your House, The Rock defeated Ken Shamrock and Mankind in a triple threat steel cage match to become the number one contender for the WWF Championship. The Rock then feuded with fellow Nation member Mark Henry, effectively breaking up the stable.  The Rock's entertaining promos and ensuing popularity led to a face turn, in which he called himself "The People's Champion". This led to a feud with Mr. McMahon, who said he had "a problem with the people" and would thus target "The People's Champion". A double turn occurred at Survivor Series, when The Rock defeated McMahon's associate, Mankind, in the finals of the "Deadly Game" tournament for the vacant WWF Championship in a fashion reminiscent of the Montreal Screwjob. The Rock allied with Vince and Shane McMahon as the crown jewel of their stable, The Corporation. On December 13, 1998 at the pay-per-view named for him, Rock Bottom: In Your House, The Rock had a rematch with Mankind for the WWF Championship. Mankind appeared to win the match when The Rock passed out in the Mandible Claw submission move, but Mr. McMahon ruled that since The Rock did not tap out, he retained his title.  The Rock continued to feud with Mankind over the WWF Championship, which was traded back and forth between them. First, in the main event of the January 4, 1999 episode of Raw Is War, Mankind defeated The Rock after interference from Stone Cold Steve Austin. Then, in an "I Quit" match at Royal Rumble on January 24, The Rock regained the title, when a recording of Mankind saying "I quit" from an earlier interview was played over the PA system. On Halftime Heat (an episode of Sunday Night Heat aired in the same timeslot as the Super Bowl XXXIII halftime show) on January 31, Mankind pinned The Rock using a forklift truck in an empty arena match. The two faced off again at St. Valentine's Day Massacre: In Your House in a last man standing match which ended in a draw, meaning Mankind retained the title. Their feud ended on February 15 Raw Is War, when The Rock won his third WWF Championship in a ladder match after Big Show performed a chokeslam on Mankind off the ladder. The Rock lost the WWF Championship to Stone Cold Steve Austin at WrestleMania XV.  Though he was a villain, his amusing verbal skills led many fans to cheer The Rock, who then lost the title rematch at Backlash: In Your House and was thus betrayed by Shane McMahon, turning him back into a fan favorite and beginning a feud with Triple H, The Undertaker and The Corporate Ministry that saw The Rock defeating Triple H at Over the Edge, but then losing to WWF Champion The Undertaker at King of the Ring. The Rock lost a number one contender's match to Triple H at Fully Loaded after interference from Mr. Ass. This sparked a feud with Mr. Ass, culminating in a Kiss My Ass match at SummerSlam, which The Rock won.  The Rock returned on January 30, 2003, episode of SmackDown! to publicly criticize Hulk Hogan and make it clear that because of the success of his Hollywood career, WWE was no longer a priority and thus reestablishing him as a villain for the first time since 1999. Rock defeated Hogan again at No Way Out and drafted himself to the Raw brand where he had various feuds, including one with The Hurricane. He also performed "Rock concerts", segments in which he played the guitar and mocked the show's host city.  After failing to win number one contendership for the World Heavyweight Championship, The Rock turned his attention to Steve Austin who, to The Rock's chagrin, had been chosen as "Superstar of the Decade". This led to a match at WrestleMania XIX, which called back to their previous two WrestleMania encounters, both of which Austin had won. The Rock won after delivering three consecutive Rock Bottoms, ending their long-running feud in what turned out to be Austin's final match. The next night, Raw was billed as "The Rock Appreciation Night", in honour of his victory over Austin. That night, he was attacked by a debuting Goldberg. At Backlash, Goldberg defeated The Rock, who then left WWE as an active wrestler to focus on his film career.  The Rock then occasionally returned to WWE in non-wrestling roles, gradually turning face again by engaging in one night feuds against heels such as Chris Jericho and Christian. The Rock aided Mick Foley in his feud against Evolution, leading to a reunion of The Rock 'n' Sock Connection. They faced Ric Flair, Randy Orton, and Batista in a handicap match at WrestleMania XX, losing when Orton pinned Foley after the RKO. It turned out to be Rock's last match for the next seven years. The Rock appeared in WWE sporadically following WrestleMania XX. He stood up for Eugene, made a cameo in his hometown of Miami and helped Mick Foley turn back La Resistance. Later in 2004, he hosted a pie-eating contest, as part of the WWE Diva Search and ended the segment by giving Jonathan Coachman a spinebuster and a People's Elbow. After this, he stated in several interviews that he was no longer under contract to WWE. He stated that he would continue using the trademarked name "The Rock", per a dual ownership deal between him and WWE.

Answer this question "who did he have a feud with?" by extracting the answer from the text above.
The Rock feuded with Austin and Ken Shamrock through the end of 1997 and beginning of 1998.