Answer by taking a quote from the following article:

Terry Eugene Bollea was born in Augusta, Georgia on August 11, 1953, the son of construction foreman Pietro "Peter" Bollea (December 6, 1913 - December 18, 2001) and homemaker and dance teacher Ruth V. (nee Moody; 1922 - January 1, 2011). He is of French, Italian, Panamanian, and Scottish descent. When he was one and a half years old, his family moved to Port Tampa, Florida. As a boy, he was a pitcher in Little League Baseball.

Hogan remained WWF World Heavyweight Champion for four years (1,474 days). In front of 33 million viewers, however, Hogan finally lost the title to Andre on the February 5 episode of The Main Event after a convoluted scam involving "The Million Dollar Man" Ted DiBiase and Earl Hebner (who assumed the place of his twin brother Dave Hebner, the match's appointed referee). After Andre delivered a belly to belly suplex on Hogan, Hebner counted the pin while Hogan's left shoulder was clearly off the mat. After the match, Andre handed the title over to DiBiase to complete their business deal. As a result, the WWF World Heavyweight Championship was vacated for the first time in its 25-year history because then WWF President Jack Tunney decreed the championship could not be sold from one wrestler to another. At WrestleMania IV, Hogan participated in a tournament for the vacant WWF World Heavyweight Championship to regain it; he and Andre were given a bye into quarter-finals, but their match resulted in a double disqualification. Later that night in the main event, Hogan came to ringside to stop Andre interfering which helped "Macho Man" Randy Savage defeat Ted DiBiase to win the title.  Together, Hogan, Savage, and manager Miss Elizabeth formed a partnership known as The Mega Powers. After Savage became WWF World Heavyweight Champion at WrestleMania IV, they feuded with The Mega Bucks (Andre the Giant and Ted DiBiase) and defeated them at the main event of the first SummerSlam. They then went on to feud with Slick's Twin Towers: Akeem and Big Boss Man.  In mid-1988, Hogan wrestled at house shows in singles competition with his "War Bonnet", a red and yellow gladiator helmet with a fist-shaped crest. This was notably used to give Bad News Brown his first WWF loss at a Madison Square Garden house show before it was discarded altogether. The War Bonnet gimmick was revisited in the WWE's online comedy series Are You Serious? in 2012.  The Mega Powers began to implode due to Savage's burgeoning jealousy of Hogan and his paranoid suspicions that Hogan and Elizabeth were more than friends. At the Royal Rumble in 1989, Hogan eliminated Savage from the Royal Rumble match while eliminating Bad News Brown, which caused tension, only to be eliminated by The Twin Towers himself. In early 1989, the duo broke up while wrestling The Twin Towers on the February 3 episode of The Main Event, when Savage accidentally collided with Miss Elizabeth during the match, and Hogan took her backstage to receive medical attention, temporarily abandoning Savage, who slapped Hogan and left the ring, where Hogan eventually won the match by himself. After the match, Savage attacked Hogan backstage, which started a feud between the two. Their feud culminated in Hogan beating Savage for his second WWF World Heavyweight Championship at WrestleMania V.

what did they do together?
they feuded with The Mega Bucks (Andre the Giant and Ted DiBiase) and defeated them at the main event of the first SummerSlam.