Captain Marvel, also known as Shazam (), is a fictional superhero appearing in American comic books published by DC Comics. Artist C. C. Beck and writer Bill Parker created the character in 1939. Captain Marvel first appeared in Whiz Comics #2 (cover-dated Feb. 1940), published by Fawcett Comics.

The first post-Crisis appearance of Captain Marvel was in the 1986 Legends miniseries. In 1987, Captain Marvel appeared as a member of the Justice League in Keith Giffen's and J. M. DeMatteis' relaunch of that title. That same year (spinning off from Legends), he was given his own miniseries titled Shazam!: The New Beginning. With this four-issue miniseries, writers Roy and Dann Thomas and artist Tom Mandrake attempted to re-launch the Captain Marvel mythos and bring the wizard Shazam, Dr. Sivana, Uncle Dudley, and Black Adam into the modern DC Universe with an altered origin story. Roy Thomas, a veteran comic book writer and editor, had been lured from Marvel Comics to DC in 1981 with the specific contractual obligation that he would become the main writer of Shazam! and the Justice Society of America characters. Before the Crisis, Thomas wrote several of the DC Comics Presents stories featuring the Marvel Family.  The most notable change that the Thomases, Giffen, and DeMatteis introduced into the Captain Marvel mythos was that the personality of young Billy Batson is retained when he transforms into the Captain. This change would remain for most future uses of the character as justification for his sunny, Golden-Age personality in the darker modern-day comic book world, instead of the traditional depiction used prior to 1986, which tended to treat Captain Marvel and Billy as two separate personalities.  This revised version of Captain Marvel also appeared in one story-arc featured in the short-lived anthology Action Comics Weekly #623-626 (October 25, 1988 - November 15, 1988), in which a Neo-Nazi version of Captain Mazi was introduced. At the end of the arc, it was announced that this would lead to a new Shazam! ongoing series. Though New Beginning had sold well and multiple artists were assigned to and worked on the book, it never saw publication due to editorial disputes between DC Comics and Roy Thomas. As a result, Thomas' intended revival of the Marvel Family with a new punk-styled Mary Bromfield/Mary Marvel (aka "Spike") who was not Billy's sister, and an African-American take on Freddy Freeman/Captain Marvel Jr., did not see print. Thomas departed DC in 1989, not long after his removal from the Shazam! project.  Other attempts at reviving Shazam! were initiated over the next three years, including a reboot project by John Byrne, illustrator of Legends and writer/artist on the Superman reboot miniseries The Man of Steel (1986). None of these versions saw print, though Captain Marvel, the Wizard Shazam, and Black Adam did appear in DC's War of the Gods miniseries in 1991. By this time, DC had finally ceased the fee-per-use licensing agreement with Fawcett Publications and purchased the full rights to Captain Marvel and the other Fawcett Comics characters.Answer this question using a quote from the following article:

What happen in the 1980s
The first post-Crisis appearance of Captain Marvel was in the 1986 Legends miniseries.